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.