468,773 Members | 2,285 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,773 developers. It's quick & easy.

count pages in a pdf

is it possible to parse a pdf file in python? for starters, i would
like to count the number of pages in a pdf file. i see there is a
project called ReportLab, but it seems to be a pdf generator... i
can't tell if i would be able to parse a pdf file programmically.

thanks for any recommendations.

bryan
Nov 27 '07 #1
3 3854
be****@gmail.com wrote:
is it possible to parse a pdf file in python? for starters, i would
like to count the number of pages in a pdf file. i see there is a
project called ReportLab, but it seems to be a pdf generator... i
can't tell if i would be able to parse a pdf file programmically.
Well the simple expedient of putting "python count pages pdf" into
Google turned up the following link:

http://aspn.activestate.com/ASPN/Coo.../Recipe/496837

and no few others. Might be worth a look?

TJG
Nov 27 '07 #2
Tim Golden wrote:
be****@gmail.com wrote:
>is it possible to parse a pdf file in python? for starters, i would
like to count the number of pages in a pdf file. i see there is a
project called ReportLab, but it seems to be a pdf generator... i
can't tell if i would be able to parse a pdf file programmically.
http://groups.google.de/group/comp.l...304970b4ff40ce
and following.
Well the simple expedient of putting "python count pages pdf" into
Google turned up the following link:

http://aspn.activestate.com/ASPN/Coo.../Recipe/496837
mmmmh. There is a non-vanishing possibility that this pattern-
matching can give you false positives -not reliable.

Wishing a happy day,
LOBI
Nov 27 '07 #3
On 2007-11-27, be****@gmail.com <be****@gmail.comwrote:
is it possible to parse a pdf file in python? for starters, i would
like to count the number of pages in a pdf file. i see there is a
project called ReportLab, but it seems to be a pdf generator... i
can't tell if i would be able to parse a pdf file programmically.
http://pybrary.net/pyPdf/
Nov 27 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Jose Benito Gonzalez Lopez | last post: by
2 posts views Thread by TGOS | last post: by
6 posts views Thread by Bill | last post: by
2 posts views Thread by bling via DotNetMonster.com | last post: by
1 post views Thread by laredotornado | last post: by
reply views Thread by phpmel | last post: by
11 posts views Thread by simon2x1 | last post: by
1 post views Thread by CARIGAR | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.