Web Developer's Virtual Library: Encyclopedia of Web Design Tutorials, Articles and Discussions
 Discussion Forums
 HTML, XML, JavaScript...
 Software Reviews
 Editors,Others...
 Top100
 JavaScript Tutorials, ...
 Tutorials
 ASP, CSS, Databases...
 Discussion List
 FAQ, Roundup, Configure ...
 Authoring
 HTML, JavaScript, CSS...
 Design
 Layout, Navigation,...
 Graphics
 Tools, Colors, Images...
 Software
 Browsers, Editors, XML...
 Internet
 Domains, E-Commerce, ...
 WDVL Resources
  Intermdiate, Tutorials,...
 WDVL
 Discussion Lists, Top 100,...
 Technology Jobs


WDVL Newsletter

Active Server Pages
JSP/Java Servlets
Microsoft SQL Server
Daily Backup
Dedicated Servers
Streaming Audio/Video
24-hour Support    

jobs.webdeveloper.com

Hiermenus


e-commerce
Partner With Us
Online Education
Prepaid Phone Card
Memory Upgrades
Computer Deals
Promotional Golf
Televisions
Calling Cards
Baby Photo Contest
Imprinted Gifts
Web Design
Disney World Tickets
Online Education
Memory
Corporate Gifts

Developer Channel
FlashKit.com
JavaScript.com
JavaScriptSource
Developer Jobs
ScriptSearch
StreamingMediaWorld
Web Developer's Journal
Web Developer's Virtual Library
WebDeveloper.com
Webreference
Web Hosts
XMLfiles.com

internet.com
IT
Developer
Internet News
Small Business
Personal Technology
International

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers


Just because Web sites are easy to build these days, that doesn't mean it's easy to build a quality Web site that meets your business objectives.

Before developing your next Web site, or redesigning an existing site, download this Internet.com eBook to guide you through the process and plan your project, whether you're developing a site in-house or outsourcing the project.
Register now for your free Internet.com membership to download your complimentary eBook. Membership will also give you access to:

eBook library         Whitepapers         Webcasts
Newsletters         WinDrivers
Top 10 Articles
  1. Web Developer's Virtual Library: Encyclopedia of Web Design Tutorials, Articles and Discussions
  2. JavaScript Tutorial for Programmers
  3. Design
  4. JavaScript Tutorial for Programmers - Objects
  5. JavaScript Tutorial for Programmers - JavaScript Grammar
  6. JavaScript Tutorial for Programmers - Versions of JavaScript
  7. Cascading Style Sheets
  8. JavaScript Tutorial for Programmers - Embedding JavaScript
  9. JavaScript Tutorial for Programmers - Functions
  10. Authoring JavaScript
Domain Name Lookup
Search to find the availability of a domain name. Just enter the complete domain name with extension (.com, .net, .edu)

The Perl You Need to Know Part 16: A Simple Approach to PDF - Page 1

August 28, 2000

Adobe's Portable Document Format, or PDF, has become something of a standard for storing and forwarding documents destined for the printed page. PDF documents retain their formatting whether printed at home on an inkjet printer or published and bound at the neighborhood print shop, and the wide adoption of this format makes PDF a good choice for delivering data intended for hardcopy. Most web-based Perl scripts are built to deliver results in HTML format, aimed at the web browser; in some cases, though, the option to deliver result data in PDF format may be a real boon to visitors of your site. This month we'll look at one rather simple way of bringing PDF capability to your Perl scripts.

The case for PDF

Since the dawn of the printing machine, printing documents has been a pain in the backside for one reason or another. In Gutenberg's day, it took hours or days to simply find and set each cast block needed to imprint each letter on the page. By the 1980's, these same hours were devoted to re-aligning the printer paper in the tractor feed mechanism so that it would stop feeding through crooked. This nightmare was followed by a long round of tearing off the strips of feed holes without ripping into the printed area. Not coincidentally, the confetti industry experienced an economic boom during these years. And that's just the hardware side of things.

Software applications for word processing and desktop publishing have fought an uphill battle against consistency -- import your document from one application to another, and watch how it prints completely differently. Even within the same software, on different computers or printers, one never knew for sure exactly how a document would print.

Adobe saw a wide-open market in this gap of frustration, and so was born the Portable Document Format, PDF, a variety of compressed Postscript, an interpreted language widely used in "professional" printers. Adobe evangelized their format by opening the specification, encouraging developers, and freely distributing the Adobe Acrobat software which can read and print PDF files. The allure of PDF is its consistency -- an author can create a document in PDF and be assured that it will look and print exactly the same on any system or printer which can render the PDF format. Consequently, the web is awash in printable publications from brochures to entire books stored in the PDF format.

Our premise in this column is that your web applications, too, may find it useful to deliver results in PDF format, in addition to or instead of traditional HTML.

Suppose your Perl script generates a report of inventory from a database -- if you want to print this report and send a printable version to 100 other employees, it may be far easier to generate and pass around a PDF version of the report than ask people to attempt the unreliable art of printing web pages from a browser.

Imagine a web site that delivers articles, perhaps news stories or works of fiction, which readers may well want to print. You could leave them to struggle with printing from their browser, which often results in strange quirks on the page, or provide a PDF version of articles on your site.

The fact is, many Perl scripts deliver dynamic content which visitors may appreciate having in PDF format. Adding this capability is a nice feature, and for many cases, not terribly difficult.

Contents:

Skipping the Learning Curve
The Kindness of Strangers: HTMLDOC
HTML Becomes PDF
Enter the Perl
Conclusion

The Perl You Need to Know
Skipping the Learning Curve - Page 2


Up to => Home / Authoring / Languages / Perl / PerlfortheWeb


Access FREE Mainsoft Tools:
Demo: Integrate Microsoft SharePoint into IBM Lotus Notes
Mainsoft's SharePoint Integrator for Lotus Notes is an easy-to-deploy, client side plug-in that gives Notes users easy access to Microsoft SharePoint document libraries. SharePoint Integrator makes collaboration easy for enterprises that use Lotus Notes and have workgroups that rely on SharePoint for basic document management and team collaboration.


Jupiter Online Media: internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and Jupiter Online Media

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Web Hosting | Newsletters | Tech Jobs | Shopping | E-mail Offers