Chapter 12. Creating PDF Documents with Perl
The PDF::API2 module can be used to dynamically create new PDF documents or manipulate existing PDF documents. The sample application in this chapter creates a tabular PDF report (address labels) from a collection of data. Later, we’ll see how to add a “Confidential” stamp to each page of a document and how to add outlines or bookmarks to a PDF.
Like most of the other modules in this book, PDF::API2 is available on CPAN. Unlike most of the other modules, it does not work with the 5.005 series of Perl distributions; it requires Perl 5.6.x. It also requires the Compress::Zlib, Font::TTF, and Text::PDF modules to be preinstalled.
Get Perl Graphics Programming now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.