[okular] [Bug 406053] Top of the page is cut of when printing

Michael Weghorn bugzilla_noreply at kde.org
Mon May 11 07:25:22 BST 2020


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

Michael Weghorn <m.weghorn at posteo.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REPORTED                    |NEEDSINFO
         Resolution|---                         |WAITINGFORINFO

--- Comment #11 from Michael Weghorn <m.weghorn at posteo.de> ---
(In reply to Matthias from comment #8)
> I've looked at the IPP traffic that I uploaded earlier using Wireshark, and
> I found that Okular transmits the data to be printed in PDF format.
> 
> So I extracted that PDF from the pcapng capure file, saved it to disk,
> opened it with Okular and found… a blank page with nothing on it. So that
> seems to be why nothing is printed. I'm attaching said PDF here in the hope
> that it helps to figure out what's going on.

That's interesting, since Okular usually generates PostScript for printing by
default.
Okular does not generate IPP data itself, but uses the 'lpr' or 'lp' command to
pass the file to CUPS (or in the case of "Force rasterization" checkbox sent,
the Qt library handles passing the file to CUPS).

(In reply to Matthias from comment #10)
> Created attachment 128311 [details]
> Second example after it's been mangled by okular
> 
> This is what's left of the PDF when Okular sends it to CUPS via IPP

Some more questions:

1) Did you select any additional information in the print dialog, e.g. set the
"Force rasterization" checkbox?

2) What margins are set when you check that in the "Properties" dialog in the
print dialog? Does changing all margins to 0 make a difference?

3) What "Scale mode" is selected in the "PDF Options" tab in the print dialog?

4) The file passed to the CUPS Printing system for a print job is saved in
/var/spool/cups/d<PRINTJOB_ID>-001. Can you attach that file as well? That
should be a PostScript or PDF file. You might have to set 'PreserveJobFiles
Yes' in /etc/cups/cupsd.conf in case the file is not present in your case.

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


More information about the Okular-devel mailing list