Skip to content

Make the overprint preview setting tri-state (always, never, automatic)

Kevin Ottens requested to merge work/ervin/overprint-preview-automatic-mode into master

The goal is to have it always enabled, never enabled or decide automatically depending on the document metadata. This is closer to the Acrobat Reader behavior in which you can have similar values for the overprint preview setting.

It turns out that the PDF metadata generally carries a HasVisibleOverprint value set to true when the document contains overprint elements. So we're now leveraging it.

The user can now pick for the settings the following values:

  • Never, we never have overprint preview enabled
  • Always, we always have overprint preview enabled
  • Automatic, we have overprint preview only if the document metadata HasVisibleOverprint entry set to true

The latter is then a new safe default, we won't have bad surprises with colors for documents without overprint elements (due to Poppler's overprint preview support forcing RGB -> CMYK conversion in the whole pipeline).

Also for documents which somehow would end up with bad metadata (e.g. buggy creator application) it can be worked around with Always/Never depending on the case.

Merge request reports

Loading