How to resize page to fit drawing contents in Open office/Libre Office Draw
Asked Answered
H

1

19

I am programmatically drawing a flowchart in open office draw by means of Java UNO Runtime Reference api.After I have drawn the flowchart I want to resize the page according to the area aquired by the contents drawn.I have noticed that Microsoft Visio has a property called "size to fit drawing contents" in its "page setup" which does this when I draw flowchart in Visio.Pls suggest how can I do the same thing in Open office/Libre Office Draw.

Harmonium answered 25/11, 2013 at 10:46 Comment(2)
Even in Inkscape (GPL free software) you have under Properties the possibility Resize page to contentAdvisable
This bug seems fitting bugs.documentfoundation.org/show_bug.cgi?id=81118Elyssa
L
21

You can do it manually:

  1. Press Ctrl-A to select everything.
  2. Under Format>Position and Size you can see the exact size of the selection. It's helpful to copy the value of Width and Height to an editor (or a piece of paper). Click Cancel.
  3. Open Format>Page: Set Width and Height according to the size of the selection. Set all Margins to zero. Click OK.
  4. Open Format>Position and Size again: Set both Position X an Position Y to zero. Click OK.

Well, it's not so fast, but works.

Locule answered 26/4, 2018 at 15:15 Comment(1)
One thing to note: sometimes the size does not account for the width of the line. For example, if you create a circle with a thick line, then the calculated width might cutoff the edges. You'll have to adjust. This sometimes happens when you export a select shape too.Arroyo

© 2022 - 2024 — McMap. All rights reserved.