python - how to get total number of pages in PdfQuery -
i'm trying how many pages pdf has. attempt this:
pages = pdf.doc.catalog['pages'] print pages but prints <pdfobjref:2>.
got finaly
pdf.doc.catalog['pages'].resolve()['count'] it respond number of pdf pages
Comments
Post a Comment