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

Popular posts from this blog

php - mySQL problems with this code? -

java - Checkbox item adds to spinner -

java - Can't access ArrayList in other view? android null pointer exception -