https://bugs.kde.org/show_bug.cgi?id=332443

            Bug ID: 332443
           Summary: When printing, margins are not respected unless
                    "properties" dialog is opened and accepted
    Classification: Unclassified
           Product: okular
           Version: 0.18.3
          Platform: unspecified
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: okular-devel@kde.org
          Reporter: pres1...@teewars.org

This explains the inconsistent results I kept getting in #332331.

If print is pressed within the print dialog, without opening the printer
"properties" dialog and accepting it, the margins default to 10pt on each side
instead of respecting the printer's default margins.

If print is pressed first, here is what's sent to CUPS:
page-bottom=10 page-left=10 page-right=10 page-top=10

However if the properties dialog is opened and accepted, here is what is sent
(the defaults for my printer):
page-bottom=36 page-left=18 page-right=18 page-top=9

The offending function seems to be QPrinter::getPageMargins() on line 654 in
core/fileprinter.cpp. That's a Qt function, so this could be a Qt bug, but I'm
not sure if there's a way to work around it in Okular.


Reproducible: Always

Steps to Reproduce:
1. Print document without opening "Properties"
2. Observe 10pt margins sent to printer.
3. Print again after opening and accepting "Properties"
4. Observe printer default margins sent to printer.
Actual Results:  
10pt margins sent unless Properties dialog is accepted.

Expected Results:  
Default printer margins are sent without having to open and accept Properties
dialog.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Okular-devel mailing list
Okular-devel@kde.org
https://mail.kde.org/mailman/listinfo/okular-devel

Reply via email to