"pages" argument in pdfplumber.open #697
-
The function pdfplumber.open("xxxx.pdf") has a pages argument but I am unable to set it correctly. My pdf file is 70 pages and I want to extract only the first 5 pages. In another example i want to only extract only certain pages.
All the above options give the following error.
I can iterate the "pdf.pages" and extract the required tables but would be great if pdfplumber.open could use the pages argument. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi, |
Beta Was this translation helpful? Give feedback.
Hi,
pages
expects a list orrange(...)
of page numbers, e.g.,pages=[1, 2, 3, 4, 5]
orpages=range(1, 6)
.