count pages in a pdf

Jon Ribbens jon+usenet at
Tue Nov 27 18:30:01 CET 2007

On 2007-11-27, belred at <belred at> 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.

More information about the Python-list mailing list