Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Converting a jpeg through png to pdf produces a broken pdf. `PDF14 device push/pop out of sync` #463
MacOS, imagemagick installed via homebrew.
Steps to reproduce:
The file also can't be open with Adobe Reader.
In stock Ubuntu 14.04 imagemagick, the following is output for the
The problem doesn't happen, when step 2 is run without
referenced this issue
May 2, 2017
The issue is caused by wrong object references/pointers in the output pdf after the feature introduced by #417 . Every raster file with icc profile is affected. It's just this particular jpeg->png->pdf procedure produces a pdf, that actually can't be opened.
The pdf produced by the
@dlemstra Object references need to be tracked in such a way, that they take into account the fact, that there might be an icc profile occupying
It's probably worth double checking, whether all other object references take that into account.