pdfghostscriptpdf-conversion

How to simulate overprinting for a pdf device using ghostscript


I am converting pdf's to other formats and i would like to have the end output pdf/jpg/png etc to have the same effect as when one selects the simulate overprinting option in the adobe acrobat reader.

I went through a similar question at Ghostscript - don't show objects with overprint set

The device pdfwrite doesn't work with the option -dSimulateOverprint=true.

EDIT 2 Sample input file can be found here

The input pdf file has layers and I am trying to convert it to a pdf for the client who will be able to see the underlying layer, without clicking on simluateoverprint option in tools menu of a adobe pdf pro application.

A newbie trying to get some help.


Solution

  • Fundamentally, as I said over on the question you posted before, you can't. There are two reasons;

    Firstly (fore rendering devices) overprint is only defined for CMYK space, so the only way to get overprinted output is to use a CMYK device. You can simulate the effects of spot colours being overprinted by setting -dSimulateOverprint (which is in nay case the default value). You cannot represent overprint at all on any device which is not basically CMYK.

    For high level output devices, such as pdfwrite, it doesn't (normally) render anything. So you can't 'simulate overprinting' on these devices. Either the output has overprint operations, or it does not. Whether the output does is solely dependent on whether the input does. If the input has overprint, then the output will have overprint. Its up to the rendering engine which consumes the PDF file how to render overprinted content.