By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,092 Members | 1,546 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,092 IT Pros & Developers. It's quick & easy.

count pages in a pdf

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a
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

P: n/a
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.