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