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

fix getEncoder when both ToUnicode and Encoding keys are present #1

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

martoche
Copy link

Two fixes in this PR:

pages begin at index 1, and end at NumPage()
See for example http://pdfkit.org/demo/out.pdf. Font dictionaries
have the keys Encoding and ToUnicode. In this case, charmapEncoding
should be used.
See page 146 of the PDF 1.7 spec: a page /Contents can be a stream,
or an array of streams.
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