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

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -