Autoscale not working any more in Word macro v27?

+1 vote
asked Feb 25, 2014 in Bug by rmric (2,140 points)

Hi,

Since v27 of the Word template, it looks like sometimes the autoscaling of a rendered large image is not working any more like it used to be in v23/v24. Here is an example tested with MS Word 2010, PlantUML 7993, dot 2.36:

@startuml
package PkgReference
package PP {
[TT1]
}
component CC {
[TT2]
}
folder FF {
[TT3]
}
database DD {
[TT4]
}
storage SS {
[TT5]
}
artifact AA {
[TT6]
}
rectangle RR {
[TT7]
}
node NN {
[TT8]
}
frame FR {
[TT9]
}
cloud CL {
[TT10]
}
@enduml

Thanks

1 Answer

0 votes
answered Oct 6, 2014 by rmric (2,140 points)

Replying to my own question, since v27 of the Word template, it looks like the auto-rescaling is disabled by default, but I don't know exactly why.

To re-enable it, you may use the following syntax:

'@rescale auto

but it may not always work. In that case, you have to fall back to manual rescaling, like in the following example to 70%:

'@rescale 0.7

Rem: another manual rescale is also available in any environnemnt, see http://plantuml.sourceforge.net/commons.html#scale

...