Skip Menu |

This queue is for tickets about the PDF CPAN distribution.

Report information
The Basics
Id: 11910
Status: new
Priority: 0/
Queue: PDF

People
Owner: Nobody in particular
Requestors: codepublishing [...] qwest.net
Cc:
AdminCc:

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



Subject: PDF module
module: PDF 111 Perl version: v5.6.0, built for MSWin32-x86-multi-thread, patch: ActivePerl Build 613 OS: Microsoft Windows XP Professional v5.1.2600, service pack: 2.0 The PDF module seems to have trouble accessing files created with Acrobat v6.x. It has worked fine for me with v5.x pdf files. Following are the code I used and the errors I am getting. The program I am running is "pdftest2.pl". The file I am trying to access is "ChulaVista02.pdf" Code: use PDF; my $dir = "C:/dtSearch Developer/template/WebForm/English/CA/ChulaVista"; my $pdf = PDF->new ; $pdf = PDF->new("$dir/ChulaVista02.pdf"); print STDOUT "is a pdf file\n" if ( $pdf->IsaPDF ) ; print STDOUT "Has ",$pdf->Pages," Pages \n"; print STDOUT "Use a PDF Version ",$pdf->Version ," \n"; print STDOUT "filename with title ",$pdf->GetInfo("Title"),"\n"; Output: Premature end of file reached at pdftest2.pl line 7 Bad object reference '' at pdftest2.pl line 7 Bad object reference '' at pdftest2.pl line 7 Bad object reference '' at pdftest2.pl line 7 is a pdf file Has Pages Use a PDF Version 1.5 filename with title Brooke Hanford Code Publishing Co.
From: Brooke Hanford
Actually the errors should be referring to line 4; I took out some blank lines from the code when submitting it here. [guest - Wed Mar 16 21:00:52 2005]: Show quoted text
> module: PDF 111 > Perl version: v5.6.0, built for MSWin32-x86-multi-thread, > patch: ActivePerl Build 613 > OS: Microsoft Windows XP Professional v5.1.2600, service pack: 2.0 > > The PDF module seems to have trouble accessing files created with > Acrobat v6.x. It has worked fine for me with v5.x pdf files. > Following are the code I used and the errors I am getting. The > program I am running is "pdftest2.pl". The file I am trying to > access is "ChulaVista02.pdf" > > > Code: > use PDF; > my $dir = "C:/dtSearch > Developer/template/WebForm/English/CA/ChulaVista"; > my $pdf = PDF->new ; > $pdf = PDF->new("$dir/ChulaVista02.pdf"); > print STDOUT "is a pdf file\n" if ( $pdf->IsaPDF ) ; > print STDOUT "Has ",$pdf->Pages," Pages \n"; > print STDOUT "Use a PDF Version ",$pdf->Version ," \n"; > print STDOUT "filename with title ",$pdf->GetInfo("Title"),"\n"; > > Output: > Premature end of file reached at pdftest2.pl line 7 > Bad object reference '' at pdftest2.pl line 7 > Bad object reference '' at pdftest2.pl line 7 > Bad object reference '' at pdftest2.pl line 7 > is a pdf file > Has Pages > Use a PDF Version 1.5 > filename with title > > Brooke Hanford > Code Publishing Co.