Hi! i had the same problem and I solve that by using pdftops. May be there
is a simpler and elegant way, but it works fine:
$pages = `pdftops $homedir/$file - 2>> pages.err | grep -c "%%Page:"`;
chomp($pages);
$pages *= 1.;
print "$pagesn";
Cheers!
Hernán
On 9/29/07, selva kumar < templateteam%40yahoo.com">templateteam
yahoo.com> wrote:
>
> Hello All,
>
> I want to count the total number of PDF pages in the files. I have tried
> thru PDF modules Parse, API2, Extract. but it fails to read all PDF files.
>
> Can anybody please let me know which module i can use to count the total
> number of pages.
>
> Thanks in Advance
> Anil
>
> ---------------------------------
> Looking for a deal? Find great prices on flights and hotels with Yahoo!
> FareChase.
>
> [Non-text portions of this message have been removed]
>
>
>
--
---------------------------------------------
Mg. Hernán Gonzalo Asorey
Instituto Balseiro - CAB
(8400) San Carlos de Bariloche
Río Negro - Rep. Argentina
---------------------------------------------
cabtep5.cnea.gov.ar/~asoreyh/
[Non-text portions of this message have been removed]
.