How to implement a "Render this page in PDF"
page 1 of 2
Published: 14 Nov 2003
Unedited - Community Contributed
Abstract
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.
by Markus Schneider
Feedback
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 19473/ 30
Article Contents:

Introduction
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. If your site isn't dynamic you should consider switching to a content management system!

Note that there is a parameter called landscape if your HTML pages are too wide for the default portrait format.

View Entire Article

User Comments

Title: Questions   
Name: Tony
Date: 2010-02-02 7:40:05 AM
Comment:
Since you are calling a program on another domain to print a web page, is there not a risk that this program could retain information about the pages that you have printed?

In other words, would it be safe to print any personal or financial information this way without the risk of this being copied or misused.

I also wondered whether it would work if your web page is on an intranet and the site is not accessible from the outside world.
Title: CEO   
Name: Liz
Date: 2005-04-28 8:20:18 AM
Comment:
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. If your site isn't dynamic you should consider switching to a content management system!

Product Spotlight
Product Spotlight 





Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2024 ASPAlliance.com  |  Page Processed at 2024-03-29 4:49:04 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search