Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Total number of pages #38

Closed
gkrsman opened this issue Oct 27, 2015 · 1 comment
Closed

Total number of pages #38

gkrsman opened this issue Oct 27, 2015 · 1 comment

Comments

@gkrsman
Copy link

gkrsman commented Oct 27, 2015

How to know how many pages doc have?
pages = pdf.doc.catalog['Pages'] respond with PDFObjRef:2

@gkrsman
Copy link
Author

gkrsman commented Oct 30, 2015

got it:
pdf.doc.catalog['Pages'].resolve()['Count']

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants