Skip to content

Pdftops embedstream for optimizecolorspace

This fixes pdftops -level1sep -optimizecolorspace with PDFs that have embedded images with "ID" like the attached PDF. optimizecolorspace scans images for all pixels with c = m = y and then needs to restart the stream. Embedded images are handled by EmbedStream, and EmbedStream did not implement reset(). It can't use just its superclass's reset() because that will take it to the beginning of the object with the command stream that had the "ID" instead of to the start of the image. The EmbedStream constructor now remembers the superclass's position, and its reset() now tries to return there. LH349737-optcolorspace.pdf

Merge request reports