20

In inkscape <1.2, I could so easily add (canvas) margins to my drawing by going to Document Properties > Page. There were margin values that could be set up in some numerical fields (see picture).

enter image description here (Image source)

But now in Inkscape 1.2 the same window looks like that

enter image description here

There is no trace of the margins fields. Of course, I can change the page size and and recentre my drawing so that I create margins, but where can I create margins with a precise length without workaround?

4 Answers 4

19

This feature is currently not available, which is a known issue (also, bug report). It will be re-added in a future version, likely inside the new page-tool.

In the meantime, you'll have to click the 'Resize to content' button, increase the width and height manually, ctrl-click all layers in the 'Layers and Objects' panel and setting the offset with the 'X' and 'Y' inputs in the toolbar.

Update: Inkscape version 1.3 now allows you to specify margins with the page-tool, which are taken into account when using the 'Resize to content' button.

3
  • 1
    Thanks. Your answer saved me precious time of searching what actually could not be found ´:-\. Nice, that you also gave a workaround. Jun 10, 2022 at 12:19
  • can you add an image? Where are the X and Y inputs?
    – Ooker
    Oct 7, 2023 at 8:47
  • @Ooker This answer is a bit outdated and I have now edited it to mention the new margin settings in the page-tool. As for the inputs, I was talking about the ones in the toolbar with the selection-tool active, next to width and height.
    – Xrott
    Oct 7, 2023 at 12:36
6

EDIT This answer is now outdated as of the release of Inkscape 1.3 in which it is now possible to add margins while using the Pages tool. The margins are accessible via the Margins dropdown on the controls bar along the top.

enter image description here

I will leave the answer below unedited in case someone is still using version 1.2 for some reason.


I think this may have changed because of the new multipage capabilities and the new Create and Edit Document tool. It's a new interface, and still a work in progress I think. Hopefully it will be improved in time. I agree it would be nice to have the margins back. The old margins worked when resizing a page to fit the content. I don't think this is a deal breaker for me at least. The other improvements in Inkscape 1.2 still make it a worthwhile upgrade.

In the meantime here are a couple of simple workarounds I have been using.

The first looks like a lot of steps, but not really - basically it just involves drawing a temporary rectangle to resize the page.

  1. Group the page content (if there is any)

  2. Draw a rectangle the required size on top (you can delete this afterwards). Note if you need an exact size, you can type in the Width and Height fields in the rectangle tool options.

  3. Use the Align panel to centre the content in the rectangle if required

  4. Click on the Create and Edit Document tool (the Page Tool at the very bottom of the toolbox)

  5. In the tool options along the top, hit button shown here highlighted in red. This will resize the page to fit.

enter image description here

An example

enter image description here

Alternatively, you can use the Page tool to manually adjust it after resizing to fit the content. Note you can also type in a custom size in the tool options here, and you can use the Align panel to centre to the page if required.

enter image description here

3
  • how to have the background image to have 30px width and 30px height from the inner border?
    – Ooker
    Oct 7, 2023 at 8:52
  • @Ooker - this answer is out dated now. The newest Inkscape has margins. Access them with the Pages tool selected. In the control options along the top, there is a margins dropdown where you can type them in.
    – Billy Kerr
    Oct 7, 2023 at 9:31
  • @Ooker see screenshot here
    – Billy Kerr
    Oct 7, 2023 at 9:40
2

This works too:

  1. First resize to content.
  2. Then draw a rectangle that is the same size as the resized document + twice the desired margin (because there is a margins on each of the 4 sides).
  3. Then align to page: vertically centered, horizontally centered.
  4. Resize again and... tadaaaa.

If you want different margins on each side, it will be a bit harder to position the rectangle, but you'll manage. I'm quite sure of it.

  1. If you are certain that you don't need it any more, you can delete the background rectangle.
1
  • I gave +1 because it looks a bit different of Kerr's contribution. However, it is quite similar, a small variation ;) Jul 31, 2022 at 22:15
0

I have the same issue with the new version; unfortunately, you should manually extend the dimensions, rather than pressing a single click.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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