[Okular-devel] [okular] [Bug 332331] New: PDF margins are incorrect when printing because of fit-to-page option

pres1234 at teewars.org pres1234 at teewars.org
Wed Mar 19 19:40:21 UTC 2014


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

            Bug ID: 332331
           Summary: PDF margins are incorrect when printing because of
                    fit-to-page option
    Classification: Unclassified
           Product: okular
           Version: 0.18.3
          Platform: Archlinux Packages
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: okular-devel at kde.org
          Reporter: pres1234 at teewars.org

When attempting to print a PDF file with Okular (happens with other KDE/Qt
applications as well, but Okular is one I use and I don't see a better place to
report it) to my HP Deskjet D2530 printer (residing on my server with the hpijs
driver), the PDF is scaled down. The PDF I'm testing with has one inch margins
on all sides, but when printing, additional space is added to the margins.
Setting all margins to 0 within the printer properties does not fix the issue.

The page prints perfectly using lp:
$ lp /Path/to/PDF.pdf

Should also note it prints perfectly with non-KDE applications such as
epdfview.

I turned on debug mode in CUPS to find what options KDE sends to CUPS. I
narrowed it down to the "fit-to-page" option causing the issue.

I can reproduce the incorrect margins exactly with this command:
$ lp -o fit-to-page -o PageSize=Letter /Path/to/PDF.pdf

I see no option to disable "fit-to-page" within the printer dialog.


Reproducible: Always

Steps to Reproduce:
1. Open PDF file
2. Print PDF file
3. Observe margins on printed page do not match those on the PDF file
Actual Results:  
Margins are too large

Expected Results:  
Margins are exactly the same as the PDF file

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Okular-devel mailing list