Add a "Save as PDF" button to your website
Allow your visitors to download/save your webpages as PDF. To add this functionality to your website, simply add any one of the following links to your webpages.
You can also use your own button graphics if you want. As long as you point your text/image links to the correct URL (http://pdf-ace.com/pdfme), everything will work just fine.
Feel free to contact us if you need any help.
You can add parameters to the URL to customize the generated PDF. For example:
<a href="http://pdf-ace.com/pdfme?cache=1&cache_for=86400" target="_blank">Save as PDF</a>
Below is a list of all parameters you can pass to the our PDF generation script:
- cache: Set this to 1 to cache the generated PDF on our server. This is set to 1 by default. Set to 0 to disable caching.
- cache_for: Set this to the number of seconds you want to cache the PDF for. By default set to 86400 seconds (24 hours). Set to 0 to clear cache and generate a new PDF.
- print_media: Set this to 1 to enable the print media type CSS style. Click here for brief introduction to CSS media types.
- url: Set this to the URL you want to convert to PDF. By default our API will target the page on which the "Save As PDF" link is embedded. Pass a URL encoded value to this parameter if you want to target a HTML page other that the one on which the link is embedded.