The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

Changes for version 3.017 - 2019-12-31

  • examples/RMtutorial.pl, examples/Boxes.pl, examples/README, examples/examples.output, MANIFEST, tools/3_examples.pl, INFO/old/examples.bat Rich Measham's tutorial on using PDF::API2, adapted for PDF::Builder. Also a demonstration of the interaction of PDF boxes (media, crop, bleed, trim, art).
  • lib/PDF/Builder/Basic/PDF/File-Pages.pm [RT 131147] fix problem with Null object bubbling up and forcing an improper method invocation. Fix used (by Vadim Repin) is in File.pm, while a narrower scope (and presumably a bit safer) fix (by Klaus Ethgen) is on standby in Pages.pm.
  • examples/Rotated.pl, examples/ShowFont.pl minor cleanup
  • examples/Rotated.pl, examples/README, examples/examples.output, examples/ContentText.pl, MANIFEST, tools/3_examples.pl, INFO/old/examples.bat Demonstrate how to embed rotated pages within a document.
  • CONTRIBUTING, README minor updates
  • INFO/KNOWN_INCOMP general statement about large batch of removals INFO/DEPRECATED, t/content.t, lib/PDF/Builder/Content.pm, lib/PDF/Builder/Resource/ExtGState.pm Remove deprecated method meterlimit() (use correct spelling miterlimit). INFO/DEPRECATED, t/content.t, lib/PDF/Builder/Content.pm Remove deprecated method hspace() (use corrected name hscale). INFO/DEPRECATED, lib/PDF/Builder/Content.pm Remove deprecated dash pattern options -full and -clear (replaced by -pattern option). INFO/DEPRECATED, t/deprecations.t, lib/PDF/Builder/NamedDestination.pm, lib/PDF/Builder/Resource.pm Remove deprecated method new_api() (use new instead). INFO/DEPRECATED, t/papersizes.t, lib/PDF/Builder/Resource/PaperSizes.pm Remove deprecated non-standard paper sizes 4a, 2a, 4b, 2b (use 4a0, 2a0, 4b0, 2b0 standard sizes instead). INFO/DEPRECATED, lib/PDF/Builder/Resource/XObject/Form/BarCode/code3of9.pm Remove deprecated method encode_3of9_string_w_chk() (use encode_3of9_string(*, 1) instead). INFO/DEPRECATED, lib/PDF/Builder/Resource/XObject/Form/BarCode/code3of9.pm Remove deprecated method encode_3of9_w_chk() (use encode_3of9(*, 1, 0) instead). INFO/DEPRECATED, lib/PDF/Builder/Resource/XObject/Form/BarCode/code3of9.pm Remove deprecated method encode_3of9_ext() (use encode_3of9(*, 0, 1) instead). INFO/DEPRECATED, lib/PDF/Builder/Resource/XObject/Form/BarCode/code3of9.pm Remove deprecated method encode_3of9_ext_w_chk() (use encode_3of9(*, 1, 1) instead). INFO/DEPRECATED, lib/PDF/Builder/Resource/XObject/Image.pm Rename deprecated methods imask() to mask() and bpc() to bits_per_component(). INFO/DEPRECATED, lib/PDF/Builder.pm Rename deprecated methods openScalar() to open_scalar() and importpage() to import_page(). INFO/DEPRECATED, lib/PDF/Builder/Annotation.pm Rename deprecated method pdfile() to pdf_file().
  • lib/PDF/Builder/Resource/XObject/Image/JPEG.pm check for uninitialized var per API2 2.037
  • Makefile.PL, lib/PDF/Builder/Docs.pm, README Remove "optional" libraries from attempt to install. It was not clear whether they would actually be installed or how users would react to failures to install them. Most of all, there was no information passed to owners of these optional libraries that their efforts were bearing fruit! Just leave them to be manually installed, if desired.
  • lib/PDF/Builder/Resource/Font/Corefont-Postscript-SynFont-BdFont.pm Check -encode for (invalid) multibyte encodings such as UTF*. There are probably more encoding names to be added later (East Asian alphabets, in particular). Bitmapped distribution fonts (BdFont) doesn't appear to support -encode, so remove it from the POD. TrueType fonts (alone) /do/ support multibyte encodings (as do CJK). Ref PDF::API2 PR 20 https://github.com/ssimms/pdfapi2/pull/20.
  • lib/PDF/Builder.pm, lib/PDF/Builder/Page.pm restrict rotate() method to multiple of 90 degrees. Also swap 'Rotate' property test order so that find_prop() not called unnecessariy (ref RT 130722). Clarify in the POD that a positive rotation is clockwise.
  • lib/PDF/Builder/Resource/BaseFont.pm per PDF::API2, default value for returned UniByCId value (when undef), preventing undefined errors.

Modules

Facilitates the creation and modification of PDF files
Add annotations to a PDF
Corresponds to a PDF array. Inherits from PDF::Builder::Basic::PDF::Objind
A special form of PDF::Builder::Basic::PDF::String which holds the strings true or false
PDF Dictionaries and Streams. Inherits from PDF::Builder::Basic::PDF::Objind
Holds the trailers and cross-reference tables for a PDF file
Abstract superclass for PDF stream filters
compress and uncompress stream filters for ASCII-85
compress and uncompress stream filters for ASCII-Hex
compress and uncompress stream filters for Flate
compress and uncompress stream filters for Lempel-Ziv-Welch
compress and uncompress stream filters for Run-Length
Literal PDF Object. Inherits from PDF::Builder::Basic::PDF::Objind
Inherits from PDF::Builder::Basic::PDF::String and stores PDF names (things beginning with /)
PDF Null type object. This is a subclass of PDF::Builder::Basic::PDF::Objind and cannot be subclassed.
Numbers in PDF. Inherits from PDF::Builder::Basic::PDF::String
PDF indirect object reference. Also acts as an abstract superclass for all elements in a PDF file.
Represents a PDF page, inherits from PDF::Builder::Basic::PDF::Pages
a PDF pages hierarchical element. Inherits from PDF::Builder::Basic::PDF::Dict
PDF String type objects and superclass for simple objects that are basically stringlike (Number, Name, etc.)
Utility functions for PDF library
Methods for adding graphics and text to a PDF
Simple hyphenation capability
additional specialized text-related formatting methods. Inherits from PDF::Builder::Content
additional documentation for Builder module
Lightweight PDF creation methods
matrix operations library
Add named destination shortcuts to a PDF
Manage PDF outlines (a.k.a. bookmarks)
further Outline handling. Inherits from PDF::Builder::Outline
Methods to interact with individual pages
Base class for PDF resources. Inherit from PDF::Builder::Basic::PDF::Dict
Base class for font resources
Base class for CID fonts
Base class for CJK fonts
additional code support for TT font files. Inherits from PDF::Builder::Basic::PDF::Dict
Base class for PDF color spaces
colorspace handling for Device CMYK. Inherits from PDF::Builder::Resource::ColorSpace
base colorspace support for indexed color models. Inherits from PDF::Builder::Resource::ColorSpace
colorspace support for Device RGB. Inherits from PDF::Builder::Resource::ColorSpace::Indexed
colorspace support for "Web Safe" Device RGB colors. Inherits from PDF::Builder::Resource::ColorSpace::Indexed
Support for color space separations
translate color names into RGB settings
Graphics state dictionary support
some common support routines for font files. Inherits from PDF::Builder::Resource::BaseFont
Module for using bitmapped Fonts.
Module for using the 14 PDF built-in Fonts.
font-specific information for Bank Gothic font (not standard PDF core)
font-specific information for regular Courier font
font-specific information for bold weight Courier font
font-specific information for bold weight + slanted Courier font
font-specific information for slanted Courier font
font-specific information for regular Georgia font (not standard PDF core)
font-specific information for bold weight Georgia font (not standard PDF core)
font-specific information for bold weight + italic Georgia font (not standard PDF core)
font-specific information for italic Georgia font (not standard PDF core)
font-specific information for regular Helvetica font
font-specific information for bold weight Helvetica font
font-specific information for bold weight + slanted Helvetica font
font-specific information for slanted Helvetica font
font-specific information for the Symbol font
font-specific information for bold weight Times font
font-specific information for bold weight + italic Times font
font-specific information for italic Times font
font-specific information for regular (roman) Times font
font-specific information for regular Trebuchet font (not standard PDF core)
font-specific information for bold-weight Trebuchet font (not standard PDF core)
font-specific information for bold weight + italic Trebuchet font (not standard PDF core)
font-specific information for italic Trebuchet font (not standard PDF core)
font-specific information for regular Verdana font (not standard PDF core)
font-specific information for bold weight Verdana font (not standard PDF core)
font-specific information for bold weight + italic Verdana font (not standard PDF core)
font-specific information for italic Verdana font (not standard PDF core)
font-specific information for WebDings symbol font (not standard PDF core)
font-specific information for WingDings symbol font (not standard PDF core)
font-specific information for Zapf Dingbats symbol font
support routines for using PostScript fonts. Inherits from PDF::Builder::Resource::Font
Module for using synthetic Fonts.
preparsed uniglyph.txt file information
list of standard paper sizes and their dimensions
support stub for patterns. Inherits from PDF::Builder::Resource
support stub for shading patterns. Inherits from PDF::Builder::Resource
Unicode Font Support
Base class for external objects
Base class for external form objects
Base class for one-dimensional barcodes
specific information for CodaBar bar codes. Inherits from PDF::Builder::Resource::XObject::Form::BarCode
Code 128 and EAN-128 barcode support
specific information for 3-of-9 bar codes. Inherits from PDF::Builder::Resource::XObject::Form::BarCode
specific information for EAN-13 bar codes. Inherits from PDF::Builder::Resource::XObject::Form::BarCode
specific information for int 2-of-5 bar codes. Inherits from PDF::Builder::Resource::XObject::Form::BarCode
support routines for Forms. Inherits from PDF::Builder::Content, PDF::Builder::Content::Text, and PDF::Builder::Resource::XObject::Form
Base class for external raster image objects
support routines for Graphics Development image library. Inherits from PDF::Builder::Resource::XObject::Image
support routines for GIF image library. Inherits from PDF::Builder::Resource::XObject::Image
support routines for JPEG image library. Inherits from PDF::Builder::Resource::XObject::Image
support routines for PNG image library (using pure Perl code). Inherits from PDF::Builder::Resource::XObject::Image
support routines for PNG image library (using Image::PNG::Libpng). Inherits from PDF::Builder::Resource::XObject::Image
support routines for PNM (Portable aNy Map) image library. Inherits from PDF::Builder::Resource::XObject::Image
support routines for TIFF image library
support routines for TIFF image library (Graphics::TIFF enabled)
TIFF image support (Graphics::TIFF enabled)
support routines for finding line breakpoints with Unicode text
utility package for often-used methods across the package.