Put a 'Save as PDF' link on your website

With a business license you can put a link on your website that lets vistors save your web pages as PDF with a single click. It literally takes only two minutes for you to implement and offers great flexibility and power! All you need to do is put the following link on your web pages.

<a href="http://pdfmyurl.com/saveaspdf">Save this page as PDF</a>

You can also let your visitors download other pages of your website easily by using the url parameter.

<a href="http://pdfmyurl.com/saveaspdf?url=http://pdfmyurl.com/faq">Download the FAQ page as PDF</a>

You can control the layout of the PDF by adding parameters to the URL from the following table.

ParameterDescription
urlThe page on your website, which you want to convert. If you don't specify this, then we convert the page that the link is on.
Note that you must encode the URL to make sure it's used correctly. This site can help you do so.
page_sizePDF page format such as A3, A4 etc. You can find a full list of allowed values here
orientationPDF page orientation, either portrait or landscape
widthWidth of the PDF, in case you don't specify a standard page size
heightHeight of the PDF, in case you don't specify a standard page size.
If you specify a width, but no height, then we convert your page to one long single page PDF!
topTop margin in unit
bottomBottom margin in unit
leftLeft margin in unit
marginMargin margin in unit
unitUnit for page sizing and margins, can be mm, in or pt. Default is mm
headerHeader with markup, page number etc, see the header and footer documentation for more information
footerFooter with markup, page number etc, see the header and footer documentation for more information
contentControls which content of the page you want to convert or exclude. See part of page conversion for more info.
css_media_typeSet to print if you want to use the print friendly version of your web page
filenameSet the filename for the PDF
titleSet the title for the PDF
inlineDisplay the PDF inline in the browser instead of as popup to save

Examples

Below are some example links that you could put on your web pages. You can see what they do by clicking on them.

Save this webpage as PDF!

Download the FAQ as PDF!

Turn this page into a single page PDF!

Download as A4 PDF with right aligned page number!

Show as inline PDF and without margins!

Important usage instructions

If you acquired a business license and you want to use this functionality, then you need to be aware of the following things:

  1. When your visitors click the above link, We use the HTTP_REFERER parameter to determine where they came from.
    If you're using HTTPs on your website then you should link to our secure website (i.e. https://pdfmyurl.com/saveaspdf), otherwise the HTTP_REFERER doesn't get passed and we can NOT convert the webpage. Some browsers (most notably Internet Explorer) also do NOT pass the HTTP_REFERER when you use window.open or target=_blank on your save as PDF links.
  2. After you acquire the business license, you need to set the domain(s) of your website(s) in our members area. This allows us to tie your subscription to the web pages that are being converted.