Subject: | "Use of uninitialized value" line 2347 when processing some PDFs |
Date: | Wed, 16 Sep 2009 13:13:16 -0400 |
To: | <bug-CAM-PDF [...] rt.cpan.org> |
From: | <ashirokov [...] ingdirect.ca> |
Hello,
I'm getting the following warning when processing certain PDFs with
CAM::PDF v1.52 on Win32, ActiveState Perl v5.8.7.815:
Use of uninitialized value in string eq at c:/Perl/site/lib/CAM/PDF.pm
line 2347.
The warning happens when calling the getPageText() function.
The problem is that I can't provide a sample PDF file (they are internal
and confidential). When I look at file Properties in Adobe Acrobat, it
does not show anything that would help identify the software used to
produce the files (it only shows that PDF version is 1.4). The vendor
that produces the PDFs can't tell us what library their system uses.
When I open the file in Acrobat and immediately save it, the resulting
file becomes ~2 times smaller and is processed by CAM::PDF just fine.
What else can I say about the PDF:
- All security actions are allowed
- There are only 3 fonts used
- There is no images in it, only text and lines (there are tables)
Is there a tool/debug I can run on the file to gather more info to find
the bug ?
Thanks,
Arsen
-----------------------------------------------------------------
ATTENTION:
The information in this electronic mail message is private and
confidential, and only intended for the addressee. Should you
receive this message by mistake, you are hereby notified that
any disclosure, reproduction, distribution or use of this
message is strictly prohibited. Please inform the sender by
reply transmission and delete the message without copying or
opening it.
Messages and attachments are scanned for all viruses known.
If this message contains password-protected attachments, the
files have NOT been scanned for viruses by the ING mail domain.
Always scan attachments before opening them.
-----------------------------------------------------------------