A very lightweight library for creating PDF files with PrinceXML via the PHP framework CodeIgniter.
It's kept very lightweight with just the basic functionality.
$result = $this->prince->html_to_pdf('<h1>Beautiful</h1>');
// Display in browser
header('content-type: application/pdf');
echo $result;
// Or save to a file
file_put_contents('/path/to/file', $result);
$result = $this->prince->view_to_pdf('create_me');
// Display in browser
header('content-type: application/pdf');
echo $result;
// Or save to a file
file_put_contents('/path/to/file', $result);
$result = $this->prince->template_to_pdf('pdf_templates/create_me', array('foo' => 'bar));
// Display in browser
header('content-type: application/pdf');
echo $result;
// Or save to a file
file_put_contents('/path/to/file', $result);