<table><tr><td style="">michaelweghorn created this revision.<br />michaelweghorn added reviewers: Okular, ngraham, sander.<br />Herald added a project: Okular.<br />michaelweghorn requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D18179">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>This extends 'FilePrinter::printFile' by an optional<br />
parameter to specify whether or not to do scaling and passes<br />
the 'fit-to-page' to CUPS dependent on what is specified.<br />
If the parameter is not specified, the behaviour remains<br />
unchanged.</p>

<p>If FilePrinter is used, The PDF generator now passes this<br />
option depending on the scaling mode was selected in the<br />
custom print options widget, which is therefore now enabled<br />
for non-rasterized printing as well.</p></div></div><br /><div><strong>TEST PLAN</strong><div><ol class="remarkup-list">
<li class="remarkup-list-item">open a PDF document in Okular and open the print dialog</li>
<li class="remarkup-list-item">go to the "PDF Options" tab</li>
<li class="remarkup-list-item">verify that "Force rasterisation" is disabled, but the "Scale mode" combobox is active.</li>
<li class="remarkup-list-item">test all the three options available in the "Scale mode" combobox do what they say</li>
<li class="remarkup-list-item">Make sure the three options still work as expected for the "Force rasterisation" case.</li>
</ol></div></div><br /><div><strong>REPOSITORY</strong><div><div>R223 Okular</div></div></div><br /><div><strong>BRANCH</strong><div><div>michaelweghorn/WIP_allowScaledPrintingWithoutRasterization</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D18179">https://phabricator.kde.org/D18179</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>core/fileprinter.cpp<br />
core/fileprinter.h<br />
generators/poppler/generator_pdf.cpp</div></div></div><br /><div><strong>To: </strong>michaelweghorn, Okular, ngraham, sander<br /><strong>Cc: </strong>okular-devel, ngraham, darcyshen, aacid<br /></div>