Webpage to PDF Button

Important: The web page needs to be publicly accessible on the Internet. Our HTML to PDF conversion button will not work if your web page is password protected or hosted on a local development web server.

Additional Options

Below is a list of all available parameters you can pass to the our HTML to PDF script:

cache: Set this to 1 to enable caching of the generated PDF on our server. Default is 1. 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 use print media CSS. Click here for brief introduction to CSS media types.

url: Set this to the URL of the page you want to convert to PDF. For example consider the following scenario, you want to add a HTML to PDF button on www.example.com/page-1.html but what this button to generate PDF for www.example.com/page-2.html. In this case you can set link to https://pdf-ace.com/pdfme?url=/page-2.html. Now whenever someone clicks this button, it will generate PDF for www.example.com/page-2.html.