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 .