List Info

Thread: PDF page count




PDF page count
country flaguser name
United States
2007-09-29 02:06:42

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]

__._,_.___
.

__,_._,___
Re: PDF page count
country flaguser name
United States
2007-09-29 07:09:35

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">templateteamyahoo.com> wrote:
&gt;
> Hello All,
>;
> I want to count the total number of PDF pages in the files. I have tried
&gt; thru PDF modules Parse, API2, Extract. but it fails to read all PDF files.
&gt;
> Can anybody please let me know which module i can use to count the total
&gt; number of pages.
&gt;
> Thanks in Advance
> Anil
>;
> ---------------------------------
> Looking for a deal? Find great prices on flights and hotels with Yahoo!
&gt; FareChase.
>
&gt; [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]

__._,_.___
.

__,_._,___
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )