In this post we’ll show you a list of examples of using the ‘save as PDF’ functionality. Each of these examples is intended as addition to the documentation, that explains all options.
The goal of our “save as PDF” service is to give website owners the possibility of adding a simple link to their pages and thereby allowing their visitors to save certain pages as PDF. Since we feel that it’s often important to control the sizing, layout and other aspects of the PDF, we’ve added a lot of functionality to this service. Part of this functionality is controlled in the members area, where you can set defaults for your conversions, and the rest is controlled by adding parameters to the link you put on your site.
In the table below we’ll show you examples of how you can control the ‘save as PDF’ link to do more things with it.
|Description with HTML code – click to see it work|
|To get a single page PDF, that’s 300mm wide|
<a href=”http://www.htm2pdf.co.uk/display?width=300&unit=mm”>Save as PDF</a>
|To return the ‘faq’ page as PDF instead of the current page|
<a href=”http://www.htm2pdf.co.uk/display?url=http://www.htm2pdf.co.uk/faq”>Save as PDF</a>
|To set the filename of the PDF to ‘saveaspdf.pdf’|
<a href=”http://www.htm2pdf.co.uk/display?filename=saveaspdf.pdf”>Save as PDF</a>
|To set the top and bottom margins to 0 (mm is default)|
<a href=”http://www.htm2pdf.co.uk/display?top=10&bottom=10″>Save as PDF</a>
Hopefully these examples show you how easy, yet powerful this functionality is. Of course you can also pass a lot of the parameters together. If you want to learn more about it then please check out the Save as PDF page. If you want to have this on your website today, then please Join our service.