DEPRECATION WARNING
This documentation is not using the current rendering mechanism and is probably outdated. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.
typDom3¶
DOMPDF wrapper for TYPO3
How to use it¶
cd path/to/your/typo3conf/ext && git clone https://github.com/julianxhokaxhiu/typdom3.git --recursive
or install it directly from TER.- Enable the "TypDom3" extension inside your Backend
- Somewhere in your code
use \JX\Typdom3\TypDom3;
...
$pdf = new TypDom3();
$pdf->setPaper( 'A4' );
$pdf->setOrientation( 'portrait' );
$pdf->loadHtml( '<html></html>' );
$thePDF = $pdf->generatePdf();
$outputPath = '/tmp/output.pdf';
file_put_contents( $outputPath, $thePDF );
Is it ready for production?¶
Yes, it is.
Is this bug free?¶
Yes, since it's just a wrapper.