[okular] [Bug 389953] okular ignores paper size when printing

Michael Weghorn bugzilla_noreply at kde.org
Thu Feb 8 21:14:01 UTC 2018


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

--- Comment #19 from Michael Weghorn <m.weghorn at posteo.de> ---
(In reply to Attila from comment #15)
> [...]
> Here the error_log, print file and PPD as requested. These files are all
> from the Cups server.

Thanks. I still don't see anything obvious. The file generated by Okular on the
one host is identical to the one on the CUPS server host (which is expected).

For simplification, I suggest to use the following names for the two hosts
involved for now:
* Host A: Computer where Okular is running
* Host B: Computer where the CUPS server is running that the print jobs are
sent to

Can you try the following:

1) print the PDF file from another application on host A, e.g. from Evince and
from the command line using the following command:

lp -d HPM880 -o PageSize=A4 <PDF_FILE>

2) print the PDF file directly on host B using the command line:

lp -d HPM880 -o PageSize=A4 <PDF_FILE>

3) print the file generated by Okular directly via the command line on host B
(<PS_FILE> is https://bugs.kde.org/attachment.cgi?id=110406):

lp -d HPM880 -o PageSize=A4 <PS_FILE>

4) print the PDF file from Okular on host A with "Force rasterisation" enabled
in the print dialog under "Options" -> "PDF Options"

5) set up a dummy printer on host B that saves the file that would normally be
sent to the printer into a file instead. On host B, do:

* enable file devices by setting the directive "FileDevice Yes" in
/etc/cups/cups-files.conf
* restart CUPS
* set up the printer with the same PPD file as the printer used previously by
running this command: "sudo lpadmin -p tofile-test -v file:/tmp/tofile-test -P
/etc/cups/ppd/HPM880.ppd"
* make the printer available to the client as well

And then "print" to this printer. A file should be created under
/tmp/tofile-test on host B. Can you attach this one here? (Depending on the
system, you might have to use the option "-v file:$HOME/tofile-test" instead of
the "-v file:/tmp/tofile-test", as it differs a bit where CUPS is allowed to
create files).


Is the result for 1-4 the same as when printing from Okular as before or is it
different (e.g. correct printout on full A4 paper)?

By the way, how are the printers set up on host B made available to host A? Are
they explicitly set up there or are they advertised by host B and
auto-discovered on host A? (An option "cups-browsed" can be seen in the
error_log, which sounds like this might be a queue auto-discovered by
cups-browsed, but I'm not sure.)

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


More information about the Okular-devel mailing list