Skip to content

Conversation

@jbowtie
Copy link

@jbowtie jbowtie commented May 10, 2017

This replaces several usages of String.length with byte_size to ensure that correct lengths and offsets are written out.

Without this fix several PDF readers will flag the generated PDF as corrupt and may refuse to display more complex documents. The command-line tools for muPDF are good for validating output (as well as inspecting and dumping the PDF objects).

@jbowtie
Copy link
Author

jbowtie commented May 10, 2017

Note that this will not build on Travis due to #12 but can be built and checked locally.

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