Bug#595900: libpdf-api2-perl: Using TTF creates corrupt PDF
Jeffrey Ratcliffe
jeffrey.ratcliffe at gmail.com
Tue Sep 7 15:33:25 UTC 2010
retitle 595900 TTF font not found by pdftotext
thanks
On 7 September 2010 12:23, Damyan Ivanov <dmn at debian.org> wrote:
> On my system (libpdf-api2-perl 0.73-1, same as yours) there are no
> errors when running and evince opens the pdf just fine. Inspecting the
> file with hexdump shows that in the later case the font is embedded in
> the PDF.
Your right. Evince opens it fine. I can't reproduce the corruption any
more. However, I still get a huge list of warnings:
$ perl -w t/02ttf.t
1..2
ok 1 - use PDF::API2;
Use of uninitialized value in numeric gt (>) at
/usr/share/perl5/PDF/API2/Basic/TTF/Cmap.pm line 258.
Use of uninitialized value $delta in addition (+) at
/usr/share/perl5/PDF/API2/Basic/TTF/Cmap.pm line 374.
Use of uninitialized value $v in numeric ne (!=) at
/usr/share/perl5/PDF/API2/Basic/TTF/Cmap.pm line 374.
Use of uninitialized value $v in numeric eq (==) at
/usr/share/perl5/PDF/API2/Basic/TTF/Cmap.pm line 375.
Use of uninitialized value in pack at
/usr/share/perl5/PDF/API2/Basic/TTF/Cmap.pm line 411.
Use of uninitialized value $current in addition (+) at
/usr/share/perl5/PDF/API2/Basic/TTF/Cmap.pm line 426.
Use of uninitialized value in pack at
/usr/share/perl5/PDF/API2/Basic/TTF/Cmap.pm line 353.
Use of uninitialized value in pack at
/usr/share/perl5/PDF/API2/Basic/TTF/Cmap.pm line 353.
Use of uninitialized value in pack at
/usr/share/perl5/PDF/API2/Basic/TTF/Cmap.pm line 353.
Use of uninitialized value in pack at
/usr/share/perl5/PDF/API2/Basic/TTF/Cmap.pm line 353.
Use of uninitialized value in pack at
/usr/share/perl5/PDF/API2/Basic/TTF/Cmap.pm line 353.
Use of uninitialized value in pack at
/usr/share/perl5/PDF/API2/Basic/TTF/Cmap.pm line 353.
Use of uninitialized value in pack at
/usr/share/perl5/PDF/API2/Basic/TTF/Cmap.pm line 353.
Use of uninitialized value in pack at
/usr/share/perl5/PDF/API2/Basic/TTF/Cmap.pm line 353.
Use of uninitialized value in pack at
/usr/share/perl5/PDF/API2/Basic/TTF/Cmap.pm line 353.
Use of uninitialized value in pack at
/usr/share/perl5/PDF/API2/Basic/TTF/Cmap.pm line 353.
Use of uninitialized value in pack at
/usr/share/perl5/PDF/API2/Basic/TTF/Cmap.pm line 353.
Use of uninitialized value in pack at
/usr/share/perl5/PDF/API2/Basic/TTF/Cmap.pm line 353.
Use of uninitialized value in pack at
/usr/share/perl5/PDF/API2/Basic/TTF/Cmap.pm line 353.
Use of uninitialized value in pack at
/usr/share/perl5/PDF/API2/Basic/TTF/Cmap.pm line 353.
Use of uninitialized value in pack at
/usr/share/perl5/PDF/API2/Basic/TTF/Cmap.pm line 353.
Use of uninitialized value in pack at
/usr/share/perl5/PDF/API2/Basic/TTF/Cmap.pm line 353.
Use of uninitialized value in pack at
/usr/share/perl5/PDF/API2/Basic/TTF/Cmap.pm line 353.
Use of uninitialized value in pack at
/usr/share/perl5/PDF/API2/Basic/TTF/Cmap.pm line 353.
Use of uninitialized value in pack at
/usr/share/perl5/PDF/API2/Basic/TTF/Cmap.pm line 353.
Use of uninitialized value in pack at
/usr/share/perl5/PDF/API2/Basic/TTF/Cmap.pm line 353.
Use of uninitialized value in pack at
/usr/share/perl5/PDF/API2/Basic/TTF/Cmap.pm line 353.
Use of uninitialized value in pack at
/usr/share/perl5/PDF/API2/Basic/TTF/Cmap.pm line 353.
Use of uninitialized value in pack at
/usr/share/perl5/PDF/API2/Basic/TTF/Cmap.pm line 353.
Use of uninitialized value in pack at
/usr/share/perl5/PDF/API2/Basic/TTF/Cmap.pm line 353.
Use of uninitialized value in pack at
/usr/share/perl5/PDF/API2/Basic/TTF/Cmap.pm line 353.
Use of uninitialized value in pack at
/usr/share/perl5/PDF/API2/Basic/TTF/Cmap.pm line 353.
Use of uninitialized value in pack at
/usr/share/perl5/PDF/API2/Basic/TTF/Cmap.pm line 353.
Use of uninitialized value in pack at
/usr/share/perl5/PDF/API2/Basic/TTF/Cmap.pm line 353.
Use of uninitialized value in pack at
/usr/share/perl5/PDF/API2/Basic/TTF/Cmap.pm line 353.
Use of uninitialized value $delta in addition (+) at
/usr/share/perl5/PDF/API2/Basic/TTF/Cmap.pm line 374.
Use of uninitialized value $v in numeric ne (!=) at
/usr/share/perl5/PDF/API2/Basic/TTF/Cmap.pm line 374.
Use of uninitialized value $v in numeric eq (==) at
/usr/share/perl5/PDF/API2/Basic/TTF/Cmap.pm line 375.
Use of uninitialized value in pack at
/usr/share/perl5/PDF/API2/Basic/TTF/Cmap.pm line 411.
Use of uninitialized value $current in addition (+) at
/usr/share/perl5/PDF/API2/Basic/TTF/Cmap.pm line 426.
> (BTW, the diagnostic output about pdftotext results is better written
> with 'diag', instead of 'print' in order not to interfere with test
> output)
Thanks for the tip.
More information about the pkg-perl-maintainers
mailing list