Friday, June 22, 2007

Allow users to print your page as pdf


Pdfonline, the service which provides users the ability to convert their documents to pdfs easily has launched a new service which will give you the ability to allow your site visitors to convert any page on your site into pdf and download it.

To add this functionality add the following code to your site:

<script type="text/javascript">

function savePageAsPDF() {

var pURL = "" + escape(document.location.href);, "PDFOnline", "scrollbars=yes, resizable=yes,width=640, height=480,menubar,toolbar,location");


<a href="javascript:savePageAsPDF()">Save Page As PDF</a>

Click here to convert this page to pdf.

Please note that this service is currently in beta and the result might not be as expected.
More here