The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

Changes for version 3.019 - 2020-07-27

  • lib/PDF/Builder/Content/Text.pm Per [CTS 31], expand documentation of textlabel() call to emphasize that it is a standalone call, and doesn't play nicely with other text-output calls (such as not leaving a current position for the next write). It is intended for one-off labels, etc.
  • lib/PDF/Builder/Content.pm, examples/HarfBuzz.pl, examples/resources/HarfBuzz_example.pdf Support TTB (top to bottom) and BTT (bottom to top) vertical text in textHS(), now that HarfBuzz::Shaper supports these modes. Requires HarfBuzz::Shaper 0.23 or higher for TTB and BTT support, 0.21 for just LTR and RTL support. The "example" PDF is provided in case you don't yet have HarfBuzz::Shaper installed, and want to see what it does. TTB is recommended for both normally RTL (bidirectional) and LTR languages. Vertical writing is most often used with East Asian languages.
  • .perl-version, Makefile.PL, README New minimum Perl version 5.20, which is already 6 years old, so we don't waste a lot of time chasing down bugs due to ancient Perl versions. PDF::Builder will likely work with older Perl versions, but your installer (e.g., cpan or cpanm) might refuse to install it.
  • examples/042_links, examples/README, examples/examples_output, tools/3_examples.pl, lib/PDF/Builder/Annotation.pm, MANIFEST Improved documentation of annotation-based links: PDF links and targets.
  • lib/PDF/Builder/Content.pm, lib/PDF/Builder/Resource/XObject/Image/PNM.pm image() and form_image() calls default x,y to 0,0, so can call without lower left corner x,y. PNM processing [RT 132844] fix routine forgetting where it is in the PNM file and failing to read part of it. Note that 132844 is still open, as PNM handling has not yet been thoroughly checked.
  • lib/PDF/Builder/Resource/XObject/Image/PNG-PNG_IPL.pm ref PR #25 for PDF::API2. Some have reported that apparently there can be some cases where the deletion of some streams may cause errors in the vec() calls. This may be dependent on the Perl version, use of nonstandard flags (such as -e), or other unusual usage.
  • lib/PDF/Builder/Resource/Font/CoreFont/courier-courierbold-courieroblique- courierboldoblique-helvetica-helveticabold-helveticaoblique- helveticaboldoblique-timesroman-timesbold-timesitalic-timesbolditalic- symbol-zapfdingbats.pm, t/text.t In 3.018, the Core Font metrics (in particular, the 'wx' character widths) were changed to use the values in the TTF files actually used (at least, on Windows systems). Per [CTS 27] et al., I received complaints about 3.018 not using the exact Adobe font metrics for Core Fonts as before. I have gone back to using the canonical Adobe metrics, even though (for core fonts) this is likely to result in a small mismatch between the indicated glyph width and the actual glyph displayed. In most cases it's just one glyph grid unit wider (e.g., 667 instead of 666), which should have no visible effect in any real document. However, there were a handful of (rather esoteric) glyphs where the difference was considerable. I compared the claimed widths for both Adobe metrics and the TTF metrics, and picked one or the other, or even devised a new width. These are documented in the .pm files under 'wx' (widths).
    • Note that these are only the base 14 core fonts. The 15 Windows fonts were not changed, as there is no Adobe AFM standard for them.
  • INFO/CONVERSION, MANIFEST, README add conversion info for going from PDF::API2 to PDF::Builder.
  • INFO/RoadMap minor updates

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. Metrics and glyph list from Arial typeface.
font-specific information for bold weight Helvetica font. Metrics and glyph list from Arial typeface.
font-specific information for bold weight + slanted Helvetica font. Metrics and glyph list from Arial font.
font-specific information for slanted Helvetica font. Metrics and glyph list from Arial 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.