Description: LibreOffice is not maintaining correct aspect ration with source visio file (both import and export to PDF) Steps to Reproduce: 1.Open the attached "Example 2 - Original Document_Scrubbed.vsdx" 2.Check the aspect ratio on all the pages 3. Actual Results: Aspect ratio is not being maintained (see illustration attached). Expected Results: All pages are rendered in correct aspect ratio to guarantee correct placement of Controlled Viewing. Reproducible: Always User Profile Reset: No Additional Info: Version: 24.2.5.2 (X86_64) / LibreOffice Community Build ID: bffef4ea93e59bebbeaf7f431bb02b1a39ee8a59 CPU threads: 12; OS: Windows 10.0 Build 19041; UI render: Skia/Raster; VCL: win Locale: en-US (en_US); UI: en-US Calc: threaded
Created attachment 195341 [details] source document
Created attachment 195342 [details] Pag_1 aspect ratio
Created attachment 195343 [details] Page_2 Aspect ration
Confirmed. How did you imported second page? After import attached document only first page is visible.
Created attachment 196766 [details] Image after import with MS Visio from Office 365
Every page scale has it's own unit (like milimeters: <Cell N='PageScale' V='0.03937007874015748' U='MM'/> <Cell N='DrawingScale' V='0.03937007874015748' U='MM'/> With current implementation of libvisio, unit is not taking into account. For example scale could be in inches: <Cell N='PageScale' V='1' U='IN'/> <Cell N='DrawingScale' V='1' U='IN_F'/> The default value of the structure is one inch.
Created attachment 196769 [details] Example of the image in inches Your image is in milimeters. Attached image is in inches. Could you please check if the scale is correct here?
Created attachment 196770 [details] Example file exported to PDF by Visio (reference file how it should looks like
The document you have pasted is very large and it is hard to fix it all. Could you please split it to smaller objects, which is not imported correctly?
Created attachment 196970 [details] Minimal VSDX file where issue is visible