Subject: | problems running "examples" code |
Date: | Sun, 15 Nov 2015 18:39:18 -0500 |
To: | bug-PDF-API2 [...] rt.cpan.org |
From: | Phil M Perry <philperry [...] hvc.rr.com> |
I have found some apparent bugs in PDF::API2's code examples.
PDF::API2 v2.025 Perl 5.20.2 Windows XP Severity: Normal
022_truefonts: runs for a few seconds and ends without producing any
output file and no messages
022_truefonts_diacrits_utf8: runs for a few seconds and ends without
producing any output file and no messages
023_cjkfonts: MyungJo fonts only, get several dozen "Use of
uninitialized value in sprintf at 023_cjkfonts line 82."
This is an apparently undefined value returned by
$font->uniByCId($xo) in line 82
It is the line that formats the U+0xnnnn in the lower left of a cell,
and it appears to be a block
of characters on output page 57, where it's showing U+0x0000 for
them (only a few dozen characters)
024_bmpfonts: get one message "file='' not existant. at
.../Resource/Font/BdFont.pm line 169."
This is in readBDF()'s if(! -e $file) {die "file='$file' not
existant.";} where readBDF() is
apparently being passed an empty or undefined string from somewhere
"not existant" should be "does not exist", should anyone work on the
code in this routine
025_unifonts: get one message "Malformed UTF-8 character (fatal) at
025_unifonts line 89, <DATA> line 1."
It seems to be reading one of the font files in a list, and getting
this error. No output is produced.
This appears to be a regular expression substitution to remove CR and
LF characters from the line
just read in from the file.
027_winfont: runs for a few seconds and ends without producing any
output file and no messages
The following example files seem to have successfully run (produced PDF
output which looked reasonable, and no error messages):
020_corefonts
021_synfonts
026_unifont2
030_colorspecs
031_color_hsv
032_separation
I was not working in any other "examples" files, and didn't run any others.