-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Rafał Pośpiech
committed
Mar 7, 2019
1 parent
d4e06e4
commit 3606ccc
Showing
5 changed files
with
52 additions
and
26 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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<table style="border:1px solid red;width:100%;"> | ||
<tr> | ||
<td style="border:1px solid black;width:50%;"><div style="height:1000px;">Long table</div></td> | ||
<td style="border:1px solid black;">Long Table</td> | ||
</tr> | ||
</table> |
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,12 @@ | ||
<?php | ||
|
||
$loader = require '../vendor/autoload.php'; | ||
$files = ['LongTable']; | ||
foreach ($files as $file) { | ||
$document = (new YetiForcePDF\Document())->init(); | ||
$document->loadHtml(file_get_contents($file . '.html')); | ||
$time = microtime(true); | ||
$pdfFile = $document->render(); | ||
echo microtime(true) -$time; | ||
file_put_contents($file . '.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