I've downloaded the modules for counting PDF pages with Perl.
I then copied the example :-
use PDF;
$pdf=PDF->new ;
$pdf=PDF->new(filename);
$result=$pdf->TargetFile( filename );
print "is a pdf file\n" if ( $pdf->IsaPDF ) ;
print "Has ",$pdf->Pages," Pages \n";
When I run the program though, I get this error :-
ALPHA_ROB$$ perl sys$login:rob.tmp webreport$store:S2HV_NL_20040512_0A7A.PDF
can't open filename: no such file or directory at sys$login:rob.tmp line 3
%SYSTEM-F-ABORT, abort
ALPHA_ROB$$ dir webreport$store:S2HV_NL_20040512_0A7A.PDF
Directory $1$DGA11:[WEBAPP.WEBREPORTS.STORE]
S2HV_NL_20040512_0A7A.PDF;1
1060/1085 12-MAY-2004 20:09:58.22
[SYSGRP,SYSTEM] (RWED,RWED,RWED,RWE)
Any ideas?
Robert.
***********************************************************************************
Any opinions expressed in email are those of the individual and not necessarily those
of the company. This email and any files transmitted with it are confidential and
solely for the use of the intended recipient or entity to who they are addressed. It
may contain material protected by attorney-client privilege. If you are not the
intended recipient, or a person responsible for delivering to the intended recipient,
be advised that you have received this email in error and that any use is strictly
prohibited.
Random House Group IT Department helpdesk +44 (0) 1206 255900.
http://www.randomhouse.co.uk
http://www.booksattransworld.co.uk
http://www.kidsatrandom.co.uk
***********************************************************************************