Help language development. Donate to The Perl Foundation

PDF::Document cpan:TBROWDER last updated on 2021-01-08

PDF-Document-0.0.2/

Actions Status

NAME

PDF::Document - Provides high-level classes and routines to create original documents in Portable Document Format (PDF)

SYNOPSIS

use PDF::Document;
show-corefonts;

Produces:

Font family: 'Courier'               (alias: 'c')
Font family: 'Courier-Bold'          (alias: 'ch')
Font family: 'Courier-BoldOblique'   (alias: 'cbo')
Font family: 'Courier-Oblique'       (alias: 'co')
Font family: 'Helvetica'             (alias: 'h')
Font family: 'Helvetica-Bold'        (alias: 'hb')
Font family: 'Helvetica-BoldOblique' (alias: 'hbo')
Font family: 'Helvetica-Oblique'     (alias: 'ho')
Font family: 'Symbol'                (alias: 's')
Font family: 'Times-Bold'            (alias: 'tb')
Font family: 'Times-BoldItalic'      (alias: 'tbi')
Font family: 'Times-Italic'          (alias: 'ti')
Font family: 'Times-Roman'           (alias: 't')
Font family: 'Zapfdingbats'          (alias: 'z')

DESCRIPTION

Module PDF::Document leverages the power of lower-level modules PDF::Lite and Font::AFM and encapsulates some of its classes, routines, and variables into higher-level contructs to ease PDF document creation.

It is designed around the document generation process used by those who use PostScript (PS) code to create PS documents which are then transformed into PDF by the GNU program ps2pdf. That process is described in great detail in the classic PS books by Adobe (see REFERENCES) and is divided into the following logical sequences:

That sequence is also followed in the PDF document creation process:

As you can see the steps are equivalent, but the steps in PDF page creation are much easier because common low-level code required in PS creation is available behind the covers in PDF::Lite and accessed more easily by this module.

CURRENT CAPABILITY

Currently the only thing the module provides are routines and data to ease acces to PDF core fonts (those shown in the listing above) in a using module.

FUTURE CAPABILITY

This module is being used during the development of the author's other PDF modules:

This module will be updated with more items as the user modules are updated and published.

NOTE: The asterisk (*) indicates the module has been published.

REFERENCES

AUTHOR

Tom Browder [email protected]

COPYRIGHT and LICENSE

Copyright © 2021 Tom Browder

This library is free software; you can redistribute it or modify it under the Artistic License 2.0.