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 (https://pdf-ace.com/pdfme), everything will work just fine.

Feel free to contact us if you need any help.

Simple Text Link

Copy/paste the below code to your webpages.

<a href="https://pdf-ace.com/pdfme/" target="_blank">Save as PDF</a>

See below for a preview of how this link will look like:

Save as PDF

Save as PDF Button

Copy/paste the below code to your webpages.

<a href="https://pdf-ace.com/pdfme/" target="_blank"><img src="http://pdf-ace.com/images/buttons/save-as-pdf-1.gif" width="118" height="25" alt="Save as PDF" /></a>

See below for a preview of how this link will look like:

Save as PDF

Save as PDF Button

Copy/paste the below code to your webpages.

<a href="https://pdf-ace.com/pdfme/" target="_blank"><img src="http://pdf-ace.com/images/buttons/save-as-pdf-2.gif" width="120" height="27" alt="Save as PDF" /></a>

See below for a preview of how this link will look like:

Save as PDF

Save as PDF Button

Copy/paste the below code to your webpages.

<a href="https://pdf-ace.com/pdfme" target="_blank"><img src="http://pdf-ace.com/images/buttons/save-as-pdf-3.gif" width="120" height="27" alt="Save as PDF" /></a>

See below for a preview of how this link will look like:

Save as PDF

Download as PDF Button

Copy/paste the below code to your webpages.

<a href="https://pdf-ace.com/pdfme" target="_blank"><img src="http://pdf-ace.com/images/buttons/save-as-pdf-4.gif" width="105" height="19" alt="Download as PDF" /></a>

See below for a preview of how this link will look like:

Download as PDF

Download as PDF Button

Copy/paste the below code to your webpages.

<a href="https://pdf-ace.com/pdfme" target="_blank"><img src="http://pdf-ace.com/images/buttons/save-as-pdf-5.gif" width="105" height="19" alt="Download as PDF" /></a>

See below for a preview of how this link will look like:

Download as PDF

PDF Download Button

Copy/paste the below code to your webpages.

<a href="https://pdf-ace.com/pdfme" target="_blank"><img src="http://pdf-ace.com/images/buttons/save-as-pdf-6.gif" width="46" height="24" alt="Download as PDF" /></a>

See below for a preview of how this link will look like:

Download as PDF

Additional Options

You can add parameters to the URL to customize the generated PDF. For example:

<a href="https://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.