Save as PDF Button

Convert any webpage to PDF with one link

Completely Free

Let your users download your web pages as PDF with a simple link on your website. This service runs on our powerful HTML to PDF API solution which is converting millions of PDF's every month.

<a href="https://restpack.io/html2pdf/save-as-pdf" target="_blank">Save this page as PDF</a>

All you need to do is put this link on your web page: no registrations or integrations required. You can customize the look of this link with CSS or change the text inside it. You can also set other web pages to be downloaded as PDF.

<a href="https://restpack.io/html2pdf/save-as-pdf?url=https://restpack.io/misc/html2pdf/invoice.html" rel="nofollow" target="_blank">Download Invoce</a>

Some heavy web pages may take longer to start downloading. Following JavaScript code will show a loading indicator when a user clicks on Save as PDF link. It's not mandatory to use this JS code. But if you want to convert web pages which are not publicly accessible, you have to use this JavaScript code in addition to the link.

<script async src="https://restpack.io/save-as-pdf.js"></script>

There are other parameters you can specify to control the page size, layout, cache or filename of PDF. Please refer below for available parameters.

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.
pdf_pagePDF page format such as A3, A4 etc.
Allowed: A0 | A1 | A2 | A3 | A4 | A5 | A6 | Legal | Letter | Tabloid | Ledger | Full
pdf_orientationPDF page orientation, either portrait or landscape
delayCapture delay in milliseconds. In case you need some external resources to load, you might want to set a delay value.
privateSet to true if the page is behind authentication or is not accessible from open internet. Note that you need the javascript snippet above for this to work.


Complete sample code for private pages:

<a href="https://restpack.io/html2pdf/save-as-pdf?private=true" target="_blank" rel="nofollow">Save this page as PDF</a>
<script async src="https://restpack.io/save-as-pdf.js"></script>
FREQUENTLY ASKED QUESTIONS
Do I need to sign up to use Save as PDF link?

No, you don't. Just put this link to an any page. It will work.

Do I have any quota?

No. You can use this service free of charge for unlimited conversions.

How to remove watermark on converted PDF's?

You need to subscribe to one of our plans and add your website in member area.

Can I use this for a page which isn't accessible publicly?

Yes, you have to use JS snippet. Please refer to documentation above.