0

I printed a PDF drawing with Chromium. This is my reference physical output.

I imported the PDF into Inkscape (0.92.3), cloned the drawing and then printed within Inkscape. The output has the correct dimensions.

When I export the same drawing into SVG, open it with Chromium and print, it is printed slightly scaled down (exactly 0.90 times).

When I open the SVG and change the line from

<svg
    ...
    transform="matrix(1.3333333,0,0,-1.3333333,0,1122.6667)"><g
...

to

<svg
    ...
    transform="matrix(1.48144444,0,0,-1.48144444,0,1122.6667)"><g
...

(where 1.48144444 is 1.333333 / 0.90), resulting SVG is printed with the correct dimensions via Chromium.

Since 0.90 is not equal to 90px_per_mm / 96px_per_mm, it doesn't seem to be a misconfigured printing parameter. What could be the problem? How can I enter the 0.90 scale factor to somewhere for once to be able to export to SVG correctly everytime?

  • Can you share your example files? It will make it easier to find out what is happening. – Moini Feb 8 at 18:46
  • Sure. The pdf is here and the resulting SVG is here. The correct outer diameter should be 18.50 mm. – ceremcem Feb 8 at 19:28
  • 1
    Then it's already wrong in Inkscape - I get 18.7 mm? I don't see anything suspicious in the file. Could Chromium use different printer margins for printing? – Moini Feb 10 at 2:49
  • 18.7mm including or excluding the trace width? I suppose you included the trace with. Okay, the problem is found: I changed the "Margins" setting in the Chromium print options from "Default" to "None" and the printed output dimensions are exactly as expected. I guess there must be some attributes required in the SVG in order to prevent the printed result from being affected by the margin settings. – ceremcem Feb 10 at 15:42
  • 1
    Nope, that's a printer setting. Something like 'fit to page' or so... – Moini Feb 11 at 0:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.