PDF count pages

  • Thread starter Jose Benito Gonzalez Lopez
  • Start date
J

Jose Benito Gonzalez Lopez

Hi there,

Does anyone know how I could do in order
to get/count the number of pages of a PDF file? (from
python of course ;) )

Thanks beforehand.

Cheers,
Jose

--

Jose Benito Gonzalez Lopez

CERN Document Server ** <http://cds.cern.ch/> ** <cds.support @ cern.ch>
InDiCo Project ** <http://indico.cern.ch> ** <indico-project @ cern.ch>
CDSconv ** <http://cdsconv.cern.ch>
Room: Bldg 513-R-027 ** Voice: +41 22 76 78893
 
A

Andreas Lobinger

Aloha,
Does anyone know how I could do in order
to get/count the number of pages of a PDF file?

Like this ?
Python 2.2.2 (#3, Apr 10 2003, 17:06:52)
[GCC 2.95.2 19991024 (release)] on sunos5
Type "help", "copyright", "credits" or "license" for more information.
This is an example of the usage of pdfplayground. pdfplayground
is available via sourceforge. There is no package at the
moment, but you should be able to check out via anon-cvs.

Wishing a happy day
LOBI
 
D

davidb

Andreas said:
Does anyone know how I could do in order
to get/count the number of pages of a PDF file?

Like this ? [...]
[...]

That's interesting. Here's my equivalent example:

Python 2.3.3 (#1, May 2 2004, 15:04:07)
[GCC 3.2.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.518

The API shown above is from an unreleased version of pdftools
(http://www.boddie.org.uk/david/Projects/Python/pdftools/).
This is an example of the usage of pdfplayground. pdfplayground
is available via sourceforge. There is no package at the
moment, but you should be able to check out via anon-cvs.

I browsed the code in CVS and it looks like a pretty comprehensive
implementation. Maybe we should join forces.

David
 
D

davidb

Andreas said:
Does anyone know how I could do in order
to get/count the number of pages of a PDF file?

Like this ? [...]
[...]

That's interesting. Here's my equivalent example:

Python 2.3.3 (#1, May 2 2004, 15:04:07)
[GCC 3.2.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.518

The API shown above is from an unreleased version of pdftools
(http://www.boddie.org.uk/david/Projects/Python/pdftools/).
This is an example of the usage of pdfplayground. pdfplayground
is available via sourceforge. There is no package at the
moment, but you should be able to check out via anon-cvs.

I browsed the code in CVS and it looks like a pretty comprehensive
implementation. Maybe we should join forces.

David
 
A

Andreas Lobinger

Aloha,

I browsed the code in CVS and it looks like a pretty comprehensive
implementation. Maybe we should join forces.

I have problems contacting you via the given e-mail adress.

Wishing a happy day
LOBI
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,213
Messages
2,571,109
Members
47,701
Latest member
LeoraRober

Latest Threads

Top