when I save SVGs as PDFs from Inkscape, all dimensions seem to be decreased to 80% of their width. For example, a 100 x 100 box, the PDF will be 80 x 80.


       style="opacity:1;fill:#3023ae;fill-opacity:1;stroke:#000000;stroke-opacity:1" />

PDF: /MediaBox [ 0 0 80.800003 80.800003 ]

I have tried experimenting with the resolution field, to no avail.

Any ideas?


PDF base unit is 1/72th of an inch.

What you paste here for a SVG rect is in user units, and as such is meaningless without the root <svg> width, height and viewBox attributes (can you paste them as well?).

edit with <svg viewBox="0 0 744.09448819 1052.3622047" height="297mm" width="210mm">: 744.09… user units correspond to 297mm==8.2677…in so basically in your document 90user units equal 1inch (value in pre-0.92 versions of Inkscape).

Supposing your rect is not in a scaled group hierarchy, its size is 100user units, ie 100/90=1.111… inch, ie 100/90*72=80"pt" (the pdf unit).

So everything is normal so far :)

To get a 100ptx100pt square, just use the "pt" units in Inkscape instead of "px" and it should work

  • 1
    You should also mention that PDF unit is Point, SVG unit is Pixel. Point is a fixed physical size, pixel is not.
    – AAGD
    Nov 23 '17 at 12:11
  • @AAGD Actually, it depends : coordinates in the file elements are in "user units", but those can have either a relation to pixels (for most uses since svg is quite web-oriented) , or to physical sizes (or to neither), depending if the root svg document has an height in a physical unit or not ('px' or a relative unit like '%')
    – Mc-
    Nov 23 '17 at 13:13
  • Gladly: <svg viewBox="0 0 744.09448819 1052.3622047" height="297mm" width="210mm">
    – below
    Nov 24 '17 at 17:51

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.