Skip to content

Conversation

@speedplane
Copy link

_readInlineImage fails for any image that has "EIQ" inside of it.

In the in function _readInlineImage, we were looking for the operation EI and Q. However, we were not checking to ensure that there was whitespace between EI and Q. Accordingly, any image that had EIQ in its ascii encoded data would trigger the end of the image, and cause errors.

This fix changes that.

Also, added a small nit change to remove extraneous zeros from our output formatting. These can needlessly bloat the size of the PDF and hurt readability.

speedplane added 4 commits May 3, 2016 15:17
…nd Q, but were not checking to ensure that there was whitespace between EI and Q. Accordingly, any image that had EIQ in its ascii encoded data would trigger the end of the image, and cause errors.
@mstamy2 mstamy2 merged commit 78fd8c6 into py-pdf:master May 15, 2016
@mstamy2
Copy link
Collaborator

mstamy2 commented May 15, 2016

Thanks, _readInlineImage used to fail on any image data containing "EI"; when fixing that I didn't consider the possibility of an "EIQ" appearance as well.

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.

2 participants