Thursday, May 12, 2016

Html to Pdf Wordpress Plugin

HTML To PDF


This is a Wordpress plugin that uses Wkhtmltopdf to create pdf files from Html Content.

Download the plugin from 

https://www.dropbox.com/s/6lh82pdksn89bcb/jkhtmltopdf.zip


Steps to Install

1. Install Wkhtmltopdf from http://wkhtmltopdf.org/downloads.html
2. For Ubuntu follow this http://askubuntu.com/questions/556667/how-to-install-wkhtmltopdf-0-12-1-on-ubuntu-server
3. Place the plugin in wordpress plugin folder.
4. Check if  write permissions are given to the upload folder(wp-content/uploads).
4. Activate the plugin.
5. Update WKHTMLPATH executable path in the settings page of the plugin. See the screenshot.
















7. Use generate_pdf('<p>Test123</p>') function to in any of your template file to generate pdf of html.