Bug 434247 - fit to page fit to printable area doesn't work unless you check "force rasterization" checkbox
Summary: fit to page fit to printable area doesn't work unless you check "force raster...
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: printing (show other bugs)
Version: 1.9.3
Platform: Other Linux
: HI normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords: usability
: 442775 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-03-10 17:37 UTC by davidblunkett
Modified: 2021-09-24 20:20 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 21.08.2


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description davidblunkett 2021-03-10 17:37:22 UTC
I print my document (pdf), selecting any of the scaling options, and they have zero effect.  Everything comes out the same size. In this particular case too small in the middle of the page with pointlessly big margins.
Comment 1 Yuri Chornoivan 2021-03-10 17:54:59 UTC
Does it work if you select "Options >> -> PDF Settings -> Convert to bitmap"?

Thanks in advance for your answer.
Comment 2 davidblunkett 2021-03-11 07:41:38 UTC
print:options>>options tab doesn't have a setting "convert to bitmap"
print:options>>PDF options has a "force rasterisation" (which I assume is the same thing convert to bitmap)

Selecting "force rasterisation" makes the scaling work as expected
Comment 3 Nate Graham 2021-09-21 22:45:33 UTC
*** Bug 442775 has been marked as a duplicate of this bug. ***
Comment 4 Bug Janitor Service 2021-09-22 10:54:17 UTC
A possibly relevant merge request was started @ https://invent.kde.org/graphics/okular/-/merge_requests/487
Comment 5 lmat 2021-09-22 12:20:55 UTC
The related merge request doesn't seem so great. Is it possible to scale the print without rasterising? Rasterisation is a tangential goal to scaling a print.
Comment 6 Nate Graham 2021-09-22 12:30:42 UTC
Currently, no. If in the future we implement scaling without requiring rasterization, we can revert the change (if it's merged, of course).
Comment 7 Nate Graham 2021-09-24 16:06:39 UTC
Git commit 51d91bfdcb2962d9e16423359f13c22ad5fa0f17 by Nate Graham.
Committed on 23/09/2021 at 21:19.
Pushed by ngraham into branch 'release/21.08'.

Automatically enable and disable "Force Rasterization" when required

Okular implements various print scaling options that require the use of
the "Force rasterization" feature or else they have no effect. However
this is not communicated in the UI anywhere or handled automatically,
leading to users being confused and frustrated when the print scaling
option they chose didn't work. It wastes paper too.

This commit causes the "Force rasterization" checkbox to become checked
automatically whenever the user selects a print scaling option that
requires it, and unchecked if they return to the default scaling mode
that does not require it.
FIXED-IN: 21.08.2

M  +5    -0    generators/poppler/generator_pdf.cpp

https://invent.kde.org/graphics/okular/commit/51d91bfdcb2962d9e16423359f13c22ad5fa0f17
Comment 8 lmat 2021-09-24 17:57:10 UTC
Thank you very much, Nate!
Comment 9 Nate Graham 2021-09-24 20:20:16 UTC
You're welcome!