Oh, no, I have a question… After your answer I came up with idea to create a converter, so I can transform document measurement to pixels (or any other unit). Right now I have another problem: most of the shape’s units are “undefined”. Formula how to convert them in UnirFormulaErr object is not given at all. That’s my first question - how to deal with undefined unit? Maybe you already have a converter somewhere in documentation, but unfortunately I haven’t found it?
I also have a second question - PageWidth and PageHeight is given in MM, but their value is not correct for my document. Width and height values are more likely to be measured in inches for my document, but shown as MM. My program.cs class and .vsdx diagram are inside zip archive. (project was too big to upload, please create empty project and replace program.cs file with mine). Attached png file contains console output.
P.S. I use the latest 21.3.1 version of Aspose.Diagram
Files.zip (28.0 KB)
aspose.diagram.measurement.png (14.3 KB)