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

Accept xref streams with the type field not present. #43

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from

Conversation

olpa
Copy link

@olpa olpa commented Jul 23, 2012

pyPdf can't parse a cross-reference stream unless the whole triple is given for its entries. But at least from PDF 1.6:

A value of zero for an element in the W array indicates that the corresponding field
is not present in the stream, and the default value is used, if there is one. If the first
element is zero, the type field is not present, and it defaults to type 1.

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.

1 participant