cpan PDF-Builder 3.013

latest releases: 3.026, 3.025, 3.024...
5 years ago

examples/022_truefonts-022_truefonts_diacrits_utf8-023_cjkfonts-
024_bdffonts-026_unifont2
Minor cleanup to end "dot" line.
3_examples.pl, 4_contrib.pl
Minor cleanup to contrib tests, examples -step and -cont command line
flag to stop after each test to allow tester to read expected results
description (new) and look at PDF file(s) before going on to next test,
or run them all in one fell swoop.
Note that the failure in 025_unifonts is probably reading the data line
right after END (there is no DATA).

MANIFEST, 1_pc.pl, 2_t-tests.pl, 3_examples.pl, 4_contrib.pl,
INFO/old/pc.bat, INFO/old/t-tests.bat, INFO/old/examples.bat,
INFO/old/contrib.bat
Convert the various test suites from Windows .bat files to Perl .pl
files, so that they may be used on any system. Some configuration may
need to be adjusted for Linux or Unix systems (such as directory
separators and available font file names). The old .bat files have been
moved to INFO/old, in case you'd rather use them (they would need to
first either be moved back to the root, or their internal paths updated,
and checked to see if they need updating). The Perl replacements are
numbered in the suggested order for running them (only 3 and 4 are
critical to use in that order).

examples/BarCode.pl
Clean up by consolidating Helvetica font declaration into one place,
rather than once per barcode Xobject (much smaller output PDF file).
Note that barcodes still appear to have some problems with bars merging
with each other.

examples/Content.pl
Add a sample showing the use of multiple text and graphics objects to
have some text under a graphic, and other over it, and change one image
to show it rotated and clipped.

Makefile.PL
Try a different format for bugtracker entry, to point to GitHub issues
rather than the default RT ticket system.

t/00-all-usable.t
Check for optional libraries and do auto-OK only if missing. If an
optional library is present, do the normal "use" test.

README, MANIFEST
Moved README back to the root to shut up Kwalitee's complaint about no
README file.

lib/PDF/Builder.pm, lib/PDF/Builder/Annotation.pm-NamedDestination.pm-
Outline.pm, lib/PDF/Builder/Basic/PDF/Utils.pm,
lib/PDF/Builder/Resource/BaseFont.pm-CIDFont.pm,
lib/PDF/Builder/Resource/CIDFont/CJKFont.pm,
lib/PDF/Builder/Resource/Font/BdFont.pm, t/annotate.t
[ref RT 33497, RT 117031]
Consolidate PDFStr() and PDFUtf() calls (and associated is_utf() etc.
checks) into new function PDFString(), which is given the string and
usage code, and returns either PDFStr() or PDFUtf(), based on the
usage and whether UTF-8 is permitted for that usage, and what the
original string encoding was. This fixes RT 33497, and appears to fix
RT 117031 too, as I have not seen any documentation that forbids UTF-8
characters in metadata (PDFString usage 'm'). If such turns up, I will
update PDF::Builder::Basic::PDF::Utils to move metadata usage from UTF-8
permitted to disallowed.

Various Annotation titles and labels now permit UTF-8 text. Named
Destinations currently permit UTF-8, as I have not seen any restrictions
against this. Outline titles permit UTF-8. The annotate t-test was
updated because PDFUtf() format is no longer forced for
annotations.

lib/PDF/Builder/Resource/XObject/Image/GIF.pm [ref RT 44877]
Fixed library to process GIFs with 3 more types of extension blocks,
and updated the POD. The new extension blocks are read, but ignored,
so they no longer produce an error.

lib/PDF/Builder/Annotation.pm [ref RT 117942]
Do some more cleanup of annotations. Unable to get same icon behavior
between text and file_attachment, even though the same code is produced.

lib/PDF/Builder/Resource/Font/CoreFont/verdana.pm change "gimel" width from
0 to 620 (but still doesn't show up, gets "invalid character" box marker)
lib/PDF/Builder/Resource/Font/CoreFont/times
.pm change "macron" width from
333 to 520 (width was too narrow)
lib/PDF/Builder/Resource/Font/CoreFont/helvetica.pm change "macron" width
from 333 to 580 (width was too narrow)
lib/PDF/Builder/Resource/Glyphs.pm, uniglyph.txt change character 'dblgrave'
(U+F6D6) to 'dblgravecmb' (U+030F) and add width to all CoreFont/
.pm.
020_corefonts, etc. now shows a double grave accent at x0E (where
available in a typeface).
lib/PDF/Builder/Resource/Glyphs.pm, uniglyph.txt change dotlessj from U+F6BE
to U+0237; still not displaying at x1F with my font collection.
lib/PDF/Builder/Resource/Font/CoreFont.pm, lib/PDF/examples/020_corefonts,
lib/PDF/Builder/Resource/Font/CoreFont/bankgothic.pm
enable full bankgothic (not just regular). Unfortunately, this appears to
be the older Bank Gothic (not "Pro"), which has only medium weight (bold,
bolditalic are no different than regular and italic). Corrected widths on
'mu' (increased from missing/300 to 689) and 'germandbls' (reduced from
1327 to 847). bankgothic.pm is used by all four variants, so at this time
there appears to be no need to create bold, italic, and bolditalic
versions. (other fonts have different widths for some glyphs in different
variants)
lib/PDF/Builder/Resource/Font/CoreFont/bankgothic.pm remove 'euro', as the
only entry in the font is named 'Euro'. add 'macron' with width.
lib/PDF/examples/020_corefonts-ShowFont.pl,
lib/PDF/Builder/Resource/Font/BaseFont.pm core fonts with no assigned
width, show background of light red to flag them. Add method
'wxMissingByEnc()' to flag a missing core font width.

lib/PDF/Builder/Annotation.pm enable dash pattern in -border option.
lib/PDF/Builder/NamedDestination.pm remove -border and -rect options
from POD, as there seems to be no code to implement them. A link (with
-rect and -border) to a Named Destination should be taken care of in the
Annotation module.

Don't miss a new PDF-Builder release

NewReleases is sending notifications on new releases.