Bug 374406 - Cannot set print margins to zero - renders Okular useless for printing labels
Summary: Cannot set print margins to zero - renders Okular useless for printing labels
Status: RESOLVED UPSTREAM
Alias: None
Product: okular
Classification: Applications
Component: printing (show other bugs)
Version: 1.0.0
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
: 388485 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-12-31 23:14 UTC by editor
Modified: 2018-04-06 11:00 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Typical screen grab (shows "down arrows" greyed-out (127.81 KB, image/png)
2016-12-31 23:18 UTC, editor
Details

Note You need to log in before you can comment on or make changes to this bug.
Description editor 2016-12-31 23:14:00 UTC
Cannot set margins to zero any more. It used to work fine. But I upgraded to Neon 5.8.5 and suddenly found that the smallest margin was now 4.23mm. 

Most (pretty much all) PDF's have margins already set. So to print at the size originally intended it MUST be possible to set print margins to zero. But now the margins are a minimum of 4.23mm greater than they need to be, when one attempts to print.

Of course, this latest bug renders Okular completely useless when to comes to printing labels.
Comment 1 editor 2016-12-31 23:18:04 UTC
Created attachment 103120 [details]
Typical screen grab (shows "down arrows" greyed-out
Comment 2 Christoph Feck 2017-01-01 01:12:41 UTC
The printing dialog is QPrintDialog from Qt libraries. Please report this issue directly to Qt developers via https://bugreports.qt.io/
Comment 3 editor 2017-01-01 01:49:57 UTC
Seems a bug was reported ages ago regarding missing functions on QT print dialog. However, setting a page to print full page is possible already, apparently...


"This is already possible using the QPrinter::setFullPage(bool) function."
Comment 4 Richard Llom 2017-01-03 18:54:50 UTC
(In reply to editor from comment #3)
> Seems a bug was reported ages ago regarding missing functions on QT print
> dialog. However, setting a page to print full page is possible already,
> apparently...
> 
> 
> "This is already possible using the QPrinter::setFullPage(bool) function."

Would you mind sharing the link to the qt bugreport?
Comment 5 suse 2017-06-01 19:59:30 UTC
> > "This is already possible using the QPrinter::setFullPage(bool) function."
> 
> Would you mind sharing the link to the qt bugreport?

https://bugreports.qt.io/browse/QTBUG-3546

And here is the documentation of that flag:
https://doc.qt.io/qt-5/qprinter.html#setFullPage
Comment 6 Nate Graham 2017-09-13 03:20:28 UTC
This isn't an issue with Okular or the Qt print dialog; the allowable minimum margins are determined further down the printing stack, by CUPS or LPR another part of the printing system. My printer + CUPS +LPR combination allows 0" margins on all sides, for example. You might try reporting against CUPS or LPR.
Comment 7 Nate Graham 2018-01-03 14:16:20 UTC
*** Bug 388485 has been marked as a duplicate of this bug. ***