Tutorial: How to implement a "render this page to PDF button"

Step 1: Prepare the HTML pages

In order to create useful PDFs from HTML you first need to prepare the HTML Templates in a way that they can be printed without errors and malformating. Many state-of-the-art websites got a print button anyway or may be printed as they are without limitations. If your site is missing this feature you may create an additional dynamic template that ignores menus, banner, teasers etc. or even better use a CSS print template.
Note that there is a parameter called landscape if your HTML pages are too wide for the default portrait format.

Step 2: Render some test pages to PDF

You may also test the html2pdf parameters like landscape, JPG quality, Hyperlinks etc. If you do not want to use the default values be sure to include them in your code.

Step 3: Write the code

There are several possibilities to set up your site for html2pdf.

A) If you simply want to render a standard page (not a special print page) you just need to put the following link to your "render this page to PDF button": http://convert.html2pdf.seven49.net/ The Script will request the referer and render it to PDF.

B) If you want to insert the link in your current code the dynamic link on the "render this page to PDF button" should look something like this:
http://convert.html2pdf.seven49.net/?url_to_render=http://www.xy.com

Buy your Version of html2pdf

Starter Package

  • 1000 PDF Conversions
  • Highly Customazible
  • Free E-Mail Support

Pay with Paypal

Standard Package

  • 5000 PDF Conversions
  • Highly Customazible
  • Free E-Mail Support

Pay with Paypal

Professional Package

  • 10'000 PDF Conversions
  • Highly Customazible
  • Free E-Mail Support

Pay with Paypal

Enterprise Package

  • 25'000 PDFConversions
  • Highly Customazible
  • Free E-Mail Support

Pay with Paypal

Footer unten

Copyright © 2006 seven49.net
Source: http://html2pdf.seven49.net/en/Support/Tutorial_How_to_implement_a_render_this_page_to_.htm
CMS Login schliessen

CMS Login

Please sign in to edit content
loading and processing data Verarbeite Anforderung ...