Restricting the width of diagrams

0 votes
asked Nov 24, 2017 in Wanted features by MSel
edited Nov 24, 2017

We use plantuml to automatically generate diagrams out of text. Sadly, the resulting diagrams happen to be too wide to fit on the desired A4-paper, while their height remains relatively low. Since the diagrams and their respective source-code are generated automatically, manipulation of single images is not an option.

Even though there are others reporting the same cause, this problem appears to be unsolved. Is there by chance a solution I have missed? Maybe an undocumented feature?

An example was omitted since it is quite wide (naturally). I can still add it, if it helps.

1 Answer

0 votes
answered 17 hours ago by come2niks (780 points)

Try using -

scale 1024 width // 1024 pixels
scale 768 height // 768 pixels

Example : http://www.plantuml.com/plantuml/uml/SoWkIImgAStDuIfEJin9LJ0rC50epqmfoK3YPwHcfcUKS74bvoGM5oiuGcadBYv71LrTEo332KmxSpc3QHUeE8nsvN98pKi1MW40

You can also try

left to right direction

In case you need to adjust on height and width.

Example : http://www.plantuml.com/plantuml/uml/JSrB2e0m30JGVKwH2nJSk1LhzI2bZROGApGHh-y71LTlCWoa5_LLzvM1QLRK3MjUacBCbOBchO04puHjq-2HewRVdUYU0WJs8cXV1m2BndHN61uTkCVnxJydwAd4w_K9

More scaling options mentioned here - http://plantuml.com/commons

Hope it helps.

...