Bug 356466 - okular print graphing paper smaller than it should be
Summary: okular print graphing paper smaller than it should be
Status: RESOLVED DUPLICATE of bug 336617
Alias: None
Product: okular
Classification: Applications
Component: printing (show other bugs)
Version: unspecified
Platform: Debian stable Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
Depends on:
Reported: 2015-12-10 13:36 UTC by rusconi
Modified: 2018-01-18 13:42 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Note You need to log in before you can comment on or make changes to this bug.
Description rusconi 2015-12-10 13:36:36 UTC
I prepare my graphing paper (5x5 mm squares) with Inkscape. When I print the graph paper directly from Inkscape the 5x5 square size is correct over a 20 cm length. If I first export that Inkscape document to a pdf file and then use Okular to print it, the squares are smaller (I can fit one square more in a 30 cm length). I know this is Okular's fact because if I print that same pdf file with lpr , the result is perfect, like when I print directly from Inkscape.

I could provide the Inkscape file, if necessary.

Reproducible: Always
Comment 1 Michael Weghorn 2018-01-17 16:31:56 UTC
This might be due to the document being scaled down due to printer margins, s. bug 336617.

What does the result look like when you print the file using "lpr" and adding the "-o fit-to-page" option? Does it look the same as the printout from Okular?
Comment 2 Michael Weghorn 2018-01-18 08:07:18 UTC
In order to be able to evaluate whether the needed modification for this bug to disappear is already covered by bug 336617, the information in requested in comment 1 is needed.
Comment 3 rusconi 2018-01-18 12:39:18 UTC
When I try to print according to your suggestion the svg Inkscape file, I get the following error:

lpr: Unsupported document-format "image/svg+xml"

However, this is what I tried:

Print the graph paper directly from Inkscape : perfect
Print using inkscape --without-gui --export-pdf=/dev/stdout /tmp/file.svg | lpr -P HP_PRINTER -o fit-to-page : erroneous size
Print using inkscape --without-gui --export-pdf=/dev/stdout /tmp/file.svg | lpr -P HP_PRINTER : perfect

Print the pdf file from Inkscape using Okular : seems like printing with -o fit-to-page, although the ouput is not sub-millimetrically identical.

So, yeah, the hypothesis you provide seems correct.
Thank you for your handling of this bug.

So, yeah, apparently you are right,
Comment 4 Michael Weghorn 2018-01-18 13:42:58 UTC
Thank you for your retesting this and your quick reply.

As mentioned, there is already another bug report that deals with the issue of the "fit-to-page" option, so I'll close this one as a duplicate. Please follow bug 336617 to see how the matter continues.

*** This bug has been marked as a duplicate of bug 336617 ***