Skip to content
Simple PHP interface for generating PDFs using wkhtmltopdf
PHP
Latest commit 52991b9 Mar 21, 2012 @danielbeardsley danielbeardsley Add generateToTempFile() function
All output-modes should be single functions instead of forcing each usage to:

      $pdf->setOutputMode(blah)
      $pdf->generate()
      $pdf->getFilename();

README.md

wkhtmltopdf-php

A very simple interface to the super-useful PDF generation library wkhtmltopdf.

Check the source for the rest of the public API.

Example

$pdf = new PDFGenerator();
$pdf->setInputHTML($htmlContent);
$pdf->setPageSize('57.15mm', '12.7mm');
$pdf->setMargins('5mm');
$pdf->streamToClient();
exit();
Something went wrong with that request. Please try again.