@@ -3,8 +3,8 @@ |
||
| 3 | 3 | $loader = require '../vendor/autoload.php'; |
| 4 | 4 | $files = ['DefaultStyles']; |
| 5 | 5 | foreach ($files as $file) { |
| 6 | - $document = (new YetiForcePDF\Document())->init(); |
|
| 7 | - $document->loadHtml(file_get_contents($file . '.html')); |
|
| 8 | - $pdfFile = $document->render(); |
|
| 9 | - file_put_contents($file . '.pdf', $pdfFile); |
|
| 6 | + $document = (new YetiForcePDF\Document())->init(); |
|
| 7 | + $document->loadHtml(file_get_contents($file . '.html')); |
|
| 8 | + $pdfFile = $document->render(); |
|
| 9 | + file_put_contents($file . '.pdf', $pdfFile); |
|
| 10 | 10 | } |
@@ -5,5 +5,5 @@ |
||
| 5 | 5 | $document->loadHtml(file_get_contents('InvoiceTable.html')); |
| 6 | 6 | $time = microtime(true); |
| 7 | 7 | $pdfFile = $document->render(); |
| 8 | -echo microtime(true)-$time; |
|
| 8 | +echo microtime(true) - $time; |
|
| 9 | 9 | file_put_contents('InvoiceTable.pdf', $pdfFile); |
@@ -7,6 +7,6 @@ |
||
| 7 | 7 | $document->loadHtml(file_get_contents($file . '.html')); |
| 8 | 8 | $time = microtime(true); |
| 9 | 9 | $pdfFile = $document->render(); |
| 10 | - echo microtime(true) -$time; |
|
| 10 | + echo microtime(true) - $time; |
|
| 11 | 11 | file_put_contents($file . '.pdf', $pdfFile); |
| 12 | 12 | } |
@@ -3,8 +3,8 @@ |
||
| 3 | 3 | $loader = require '../vendor/autoload.php'; |
| 4 | 4 | $files = ['ColSpan']; |
| 5 | 5 | foreach ($files as $file) { |
| 6 | - $document = (new YetiForcePDF\Document())->init(); |
|
| 7 | - $document->loadHtml(file_get_contents($file . '.html')); |
|
| 8 | - $pdfFile = $document->render(); |
|
| 9 | - file_put_contents($file . '.pdf', $pdfFile); |
|
| 6 | + $document = (new YetiForcePDF\Document())->init(); |
|
| 7 | + $document->loadHtml(file_get_contents($file . '.html')); |
|
| 8 | + $pdfFile = $document->render(); |
|
| 9 | + file_put_contents($file . '.pdf', $pdfFile); |
|
| 10 | 10 | } |
@@ -7,6 +7,6 @@ |
||
| 7 | 7 | $document->loadHtml(file_get_contents($file . '.html')); |
| 8 | 8 | $time = microtime(true); |
| 9 | 9 | $pdfFile = $document->render(); |
| 10 | - echo microtime(true)-$time; |
|
| 10 | + echo microtime(true) - $time; |
|
| 11 | 11 | file_put_contents($file . '.pdf', $pdfFile); |
| 12 | 12 | } |
@@ -3,8 +3,8 @@ |
||
| 3 | 3 | $loader = require '../vendor/autoload.php'; |
| 4 | 4 | $files = ['WidthsSpecifiedTable']; |
| 5 | 5 | foreach ($files as $file) { |
| 6 | - $document = (new YetiForcePDF\Document())->init(); |
|
| 7 | - $document->loadHtml(file_get_contents($file . '.html')); |
|
| 8 | - $pdfFile = $document->render(); |
|
| 9 | - file_put_contents($file . '.pdf', $pdfFile); |
|
| 6 | + $document = (new YetiForcePDF\Document())->init(); |
|
| 7 | + $document->loadHtml(file_get_contents($file . '.html')); |
|
| 8 | + $pdfFile = $document->render(); |
|
| 9 | + file_put_contents($file . '.pdf', $pdfFile); |
|
| 10 | 10 | } |
@@ -3,8 +3,8 @@ |
||
| 3 | 3 | $loader = require '../vendor/autoload.php'; |
| 4 | 4 | $files = ['SimpleTable']; |
| 5 | 5 | foreach ($files as $file) { |
| 6 | - $document = (new YetiForcePDF\Document())->init(); |
|
| 7 | - $document->loadHtml(file_get_contents($file . '.html')); |
|
| 8 | - $pdfFile = $document->render(); |
|
| 9 | - file_put_contents($file . '.pdf', $pdfFile); |
|
| 6 | + $document = (new YetiForcePDF\Document())->init(); |
|
| 7 | + $document->loadHtml(file_get_contents($file . '.html')); |
|
| 8 | + $pdfFile = $document->render(); |
|
| 9 | + file_put_contents($file . '.pdf', $pdfFile); |
|
| 10 | 10 | } |