Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.
/ kohana-dompdf Public archive

Simple HTML to PDF converter based on DOMPDF for Kohana Framework 3.2

Notifications You must be signed in to change notification settings

dmitrymomot/kohana-dompdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

html2pdf

Simple HTML to PDF converter based on DOMPDF for Kohana Framework 3.2


Example

	// Create html from your template
	$html = View::factory('site/feedback/form/1')->render();
// Create class instance PDF
$pdf = PDF::factory($html);

// Render and save PDF
$pdf = $pdf->render()->save('your/path/upload', 'filename'); 

// OR

// Render and streams the PDF to the client
$pdf = $pdf->render()->load('filename'); 

If: Fatal error: Class ‘DOMDocument’ not found

Solution: you must install the PHP5 - php5-dom

For CentOS $ yum install php-xml

About

Simple HTML to PDF converter based on DOMPDF for Kohana Framework 3.2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages