Number of pages in a pdf file #349
mazepa-pipeline
started this conversation in
Ask for help with specific PDFs
Replies: 1 comment 1 reply
-
Hello, and wishing you luck with your Python learning journey. To get the number of pages: import pdfplumber
with pdfplumber.open("/path/to/file.pdf") as pdf:
print(len(pdf.pages)) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello there.
I am python beginner. I found pdfplumber a very good tool to extract data from pdf files. I am trying to figure out how to get the number of pages in a given pdf file using pdfplumber. Anyone could give me some clues ? Thanks a lot.
Beta Was this translation helpful? Give feedback.
All reactions