-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
performance optimization, undefined variable break bugfix
- Loading branch information
rafalpospiech
committed
Mar 4, 2019
1 parent
d43595e
commit 5c42b59
Showing
17 changed files
with
111 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
.idea/ | ||
.vscode/ | ||
vendor/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<div style="font-family:'DejaVu Sans';font-size:12px;"> | ||
Lorem ipsum dolor sit amet ante. Quisque euismod convallis non, porttitor lacus pretium eget, orci. Vestibulum nibh. | ||
Fusce a libero ornare vel, consequat eu, elit. Nullam consequat faucibus, tortor orci luctus nulla orci massa, | ||
feugiat | ||
quam interdum viverra. Mauris tempor diam. Sed tristique pede. Fusce vitae dui tincidunt lorem. Praesent dolor. | ||
Vestibulum ante ipsum sit amet tellus. Donec eros. Sed sed nulla. Sed dignissim porttitor, lacus nulla nisl eros, | ||
sit | ||
amet tempus facilisis, ante ullamcorper eleifend tincidunt, risus velit, rhoncus aliquam tortor. Nunc eleifend | ||
viverra. | ||
Proin cursus et, scelerisque ligula, et libero. Donec mauris sed augue euismod nec, accumsan eget, ante. Proin | ||
ornare | ||
vitae, dictum a, urna. Aenean scelerisque fermentum malesuada. Donec vitae odio fermentum in, vulputate quam. Fusce | ||
fringilla mollis. Etiam dapibus aliquam purus. Phasellus quis arcu. In metus. Maecenas at sagittis vel, consectetuer | ||
adipiscing sollicitudin. Cras id sapien et est congue at, congue eu, odio. Nam ultrices. Nunc accumsan vitae, | ||
tortor. | ||
Class aptent taciti sociosqu ad litora torquent per inceptos hymenaeos. Aenean gravida gravida elit. Nam ut turpis. | ||
Nam | ||
scelerisque mauris pulvinar ligula, semper aliquam ac, augue. Fusce gravida, quam interdum consectetuer dignissim, | ||
sapien leo mollis non, rhoncus eget, aliquam at, tellus. Quisque nec tincidunt vel, varius laoreet. Aenean feugiat | ||
pulvinar. Nulla semper. Morbi molestie, neque in quam nulla, egestas sodales, velit ac quam fermentum sapien sed | ||
lorem | ||
dapibus risus ut orci luctus et gravida mattis, magna vel lorem eget urna. Nullam id odio et libero. Vivamus | ||
imperdiet | ||
convallis. Donec a metus. Curabitur nec tellus. Integer metus imperdiet orci ultricies feugiat, urna ut urna. Nam | ||
lectus | ||
</div> |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
|
||
$loader = require '../vendor/autoload.php'; | ||
$files = ['LoremIpsum']; | ||
foreach ($files as $file) { | ||
$document = (new YetiForcePDF\Document())->init(); | ||
$document->loadHtml(file_get_contents($file . '.html')); | ||
$pdfFile = $document->render(); | ||
file_put_contents($file . '.pdf', $pdfFile); | ||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
<?php | ||
|
||
echo "test"; | ||
$loader = require '../vendor/autoload.php'; | ||
echo 'before'; | ||
$document = (new YetiForcePDF\Document())->init(); | ||
$document->loadHtml(file_get_contents('SimpleColor.html')); | ||
$pdfFile = $document->render(); | ||
echo 'SimpleColor'; | ||
file_put_contents('SimpleColor.pdf', $pdfFile); |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?php | ||
|
||
$loader = require '../vendor/autoload.php'; | ||
$document = (new YetiForcePDF\Document())->init(); | ||
$document->loadHtml(file_get_contents('SimpleColor.html')); | ||
$pdfFile = $document->render(); | ||
file_put_contents('SimpleColor.pdf', $pdfFile); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ | |
*/ | ||
class Math | ||
{ | ||
public static $scale = 8; | ||
public static $scale = 2; | ||
|
||
/** | ||
* Add two numbers. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters