tcpdf_example_basic_html.html.twig in TCPDF 8
Example template file for TCPDF Example module.
1 theme call to tcpdf_example_basic_html.html.twig
- TcpPdfExampleController::generateSimplePdf in tcpdf_example/
src/ Controller/ TcpPdfExampleController.php - Generates a pdf file using TCPDF module.
File
tcpdf_example/templates/tcpdf_example_basic_html.html.twigView source
- <?php
- /**
- * @file
- * Example template file for TCPDF Example module.
- */
- ?>
- <html>
- <title>{{ 'TCPDF for Drupal'|t }}</title>
- <body>
- <p>Lorem ipsum dolor sit amet, <strong>consectetur adipisicing elit</strong>, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
- <table border="1" cellpadding="10">
- <tr>
- <td>First row</td>
- <td>Foo</td>
- <td>Bar</td>
- </tr>
- <tr>
- <td>Second row</td>
- <td>Bar</td>
- <td>Bar</td>
- </tr>
- <tr>
- <td>Third row</td>
- <td>Foo</td>
- <td>Foo</td>
- </tr>
- </table>
- </body>
- </html>