Implement rasterized printing with QPrinter with hidden annotations

Authored by sander on Sep 4 2017, 2:37 PM.

Description

Implement rasterized printing with QPrinter with hidden annotations

Previously, rasterized printing would use the QPrinter backend whenever
annotations were to be printed, and fall back to the convert-to-ps
toolchain otherwise. Effectively, this meant that printing on
windows without showing the annotations was not possible (because
on windows only the QPrinter can be used for printing).

Starting with poppler 0.60, there is a way to disable annotation
rendering for the renderToImage and renderToPainter methods that
are used by QPrinter. This patch makes use of this new option,
making printing on windows without annotations possible.

Differential Revision: https://phabricator.kde.org/D7688

Details

Committed
sanderSep 7 2017, 8:41 AM
Differential Revision
D7688: Implement rasterized printing with QPrinter with hidden annotations
Parents
R223:a53a2402ca65: clang-tidy: modernize-use-nullptr run
Branches
Unknown
Tags
Unknown