count pages in a pdf

2007-11-27 Thread belred
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
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: count pages in a pdf

2007-11-27 Thread Andreas Lobinger
Tim Golden wrote:
 [EMAIL PROTECTED] 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.lang.python/msg/6f304970b4ff40ce
and following.

 Well the simple expedient of putting python count pages pdf into
 Google turned up the following link:
 
 http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/496837

h. There is a non-vanishing possibility that this pattern-
matching can give you false positives - not reliable.

Wishing a happy day,
LOBI
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: count pages in a pdf

2007-11-27 Thread Jon Ribbens
On 2007-11-27, [EMAIL PROTECTED] [EMAIL PROTECTED] 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://pybrary.net/pyPdf/
-- 
http://mail.python.org/mailman/listinfo/python-list