Find file
Fetching contributors…
Cannot retrieve contributors at this time
42 lines (28 sloc) 958 Bytes

PDF Generation via DOMPDF Library

Maintainer: Jeremy Shipman (

Makes use of: Dompdf websites:,


  • HTML string (which could be rendered template)
  • HTML File


  • PDF File location
  • SS File
  • PDF binary stream to browser

Example usage

    $pdf = new SS_DOMPDF();


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:

    echo $mydataobject->renderWith('MyTemplate');die();

Useful Tips