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

java - Checkbox item adds to spinner -

php - mySQL problems with this code? -

C# MVC AngularJS -