Skip to content
/ toPdf Public

Generate pdf from html code. This repository uses wkhtmltopdf php wrapper by @mikehaertl.

Notifications You must be signed in to change notification settings

lazzyms/toPdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

toPdf

Generate pdf from html code using Phalcon Framework. This repository uses wkhtmltopdf php wrapper by @mikehaertl.

First, you have to download the installer of wkhtmltopdf from here and then set the binary path to the config.php file.

Then you just need to change base_url and whitelist_ip in the app/config/config.php.

You're ready to go, just host this project on your server and send your html data through POST request to this project link. This will give you either a string of binary pdf, inline pdf or a downloaded pdf, or if you want to save the pdf file to your project server, you can choose one of above. To downlaod the pdf just uncomment the code below "Save PDF locally"(Do not forget to comment the string response code just below that .

About

Generate pdf from html code. This repository uses wkhtmltopdf php wrapper by @mikehaertl.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published