Skip Menu |

This queue is for tickets about the CAM-PDF CPAN distribution.

Report information
The Basics
Id: 93903
Status: new
Priority: 0/
Queue: CAM-PDF

People
Owner: Nobody in particular
Requestors: bruce [...] brucereed.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Can't use string null as a HASH ref at CAM/PDF.pm line 3462.
Date: Sun, 16 Mar 2014 14:08:18 -0400
To: <bug-CAM-PDF [...] rt.cpan.org>
From: "Bruce Reed" <bruce [...] brucereed.com>
Thank you for writing, providing, and support CAM::PDF! I wrote a tool to take a Verizon Wireless monthly statement PDF, and break it into separate PDF files by phone number. Using CAM::PDF I was able to do that in just 35 lines total, including the overhead of use statements and complete well-structured code and some blank lines! However, in developing it, I got the following error in CAM::PDF, when calling extractPages. Can't use string ("null") as a HASH ref while "strict refs" in use at C:/Perl64/site/lib/CAM/PDF.pm line 3462. It is easily fixed by the additional line noted, which is added after line 3456 in CAM/PDF.pm version 1.60 sub _deleteOutlines { my $self = shift; my $outlines = shift; my $objnums = shift; my @deletes; my @stack = ($outlines); while (@stack > 0) { my $node = shift @stack; next if $node and $node eq 'null'; # should be a HASH ref! I can't easily tell if this is a bug in CAM::PDF, or some non-standard PDF content from Verizon.