We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74a81b3 commit 025d746Copy full SHA for 025d746
README.md
@@ -15,7 +15,12 @@ $tex->setTmpDir('./runtime/'); // <- where to build the latex files
15
$pdf = $tex->renderPdf('simple-report', [ // <- which template to use (file ending .tex.twig)
16
'title' => 'My Custom Title', // <- variables to set
17
'author' => 'Me!',
18
-]);
+]);
19
+// output / save the pdf with
20
+file_put_contents('main.pdf', $pdf);
21
+// or echo with fitting header
22
+header("Content-type:application/pdf");
23
+echo $pdf;
24
```
25
26
# Contribute
0 commit comments