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

Missing optional arguments in pdfinfo_from_bytes and pdfinfo_from_path #271

Closed
magnurud opened this issue Nov 2, 2023 · 2 comments · Fixed by #274
Closed

Missing optional arguments in pdfinfo_from_bytes and pdfinfo_from_path #271

magnurud opened this issue Nov 2, 2023 · 2 comments · Fixed by #274

Comments

@magnurud
Copy link
Contributor

magnurud commented Nov 2, 2023

Describe the bug
pdfinfo_from_bytes and pdfinfo_from_path does not have support for optional arguments -f and -l.

From the documentation:

−f number

Specifies the first page to examine. If multiple pages are requested using the "−f" and "−l" options, the size of each requested page (and, optionally, the bounding boxes for each requested page) are printed. Otherwise, only page one is examined.

−l number

Specifies the last page to examine.

Expected behavior
I would expect to be able to get info from several pages of the pdf.

@Belval
Copy link
Owner

Belval commented Nov 2, 2023

If you can implement it that same way it is implemented in convert_from_path and convert_from_bytes I'd happily accept a PR: https://github.com/Belval/pdf2image/blob/master/pdf2image/pdf2image.py#L41

@magnurud
Copy link
Contributor Author

magnurud commented Jan 4, 2024

If you can implement it that same way it is implemented in convert_from_path and convert_from_bytes I'd happily accept a PR: https://github.com/Belval/pdf2image/blob/master/pdf2image/pdf2image.py#L41

#274

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

Successfully merging a pull request may close this issue.

2 participants