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

Handle references to arrays in get_page_contents() #245

Merged
merged 1 commit into from
Aug 29, 2023

Conversation

jrmuizel
Copy link
Contributor

Currently we assume that we if get a reference it's a reference to a stream. However, it can also be a reference to an array as is the case in https://github.com/jrmuizel/pdf-extract/files/12017696/Model-Card-Claude-2.pdf

Handle this by checking if we get a stream and otherwise dereferencing it.

This should also handle the case where there's a reference to a reference to a stream.

Currently we assume that we if get a reference it's a reference to a
stream. However, it can also be a reference to an array as is the case
in https://github.com/jrmuizel/pdf-extract/files/12017696/Model-Card-Claude-2.pdf

Handle this by checking if we get a stream and otherwise dereferencing
it.

This should also handle the case where there's a reference to a
reference to a stream.
@J-F-Liu J-F-Liu merged commit 474e0cc into J-F-Liu:master Aug 29, 2023
8 checks passed
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

Successfully merging this pull request may close these issues.

None yet

2 participants