This is a fork of https://github.com/burnbright/silverstripe-dompdf for use with Composer.
Maintainer: Jeremy Shipman ([email protected])
composer require gdmedia/silverstripe-dompdf
$pdf = new SS_DOMPDF(); $pdf->setHTML($mydataobject->renderWith('MyTemplate')); $pdf->render(); $pdf->toFile('mypdf.pdf');
The $pdf->streamdebug(); function is useful for quickly viewing pdfs, particularly
if your browser supports displaying pdfs, rather than downloading.
You can check your html before it is converted like this:
Module rating system helping users find modules that are well supported. For more on how the rating system works visit Module standards
Score not correct? Let us know there is a problem