Bug 162064 - MS Visio - Wrong aspect ratio
Summary: MS Visio - Wrong aspect ratio
Status: NEW
Alias: None
Product: Document Liberation Project
Classification: Unclassified
Component: libvisio (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-17 04:25 UTC by SATYA SRINIVAS K
Modified: 2024-10-08 22:44 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
source document (580.02 KB, application/vnd.ms-visio.viewer)
2024-07-17 04:26 UTC, SATYA SRINIVAS K
Details
Pag_1 aspect ratio (38.01 KB, image/png)
2024-07-17 04:26 UTC, SATYA SRINIVAS K
Details
Page_2 Aspect ration (104.52 KB, image/png)
2024-07-17 04:26 UTC, SATYA SRINIVAS K
Details
Image after import with MS Visio from Office 365 (125.11 KB, image/png)
2024-09-28 15:22 UTC, Bartosz
Details
Example of the image in inches (21.66 KB, application/vnd.ms-visio.drawing.main+xml)
2024-09-28 15:42 UTC, Bartosz
Details
Example file exported to PDF by Visio (reference file how it should looks like (322.43 KB, application/pdf)
2024-09-28 15:47 UTC, Bartosz
Details
Minimal VSDX file where issue is visible (496.12 KB, application/vnd.ms-visio.drawing.main+xml)
2024-10-08 22:44 UTC, Bartosz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description SATYA SRINIVAS K 2024-07-17 04:25:46 UTC
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
Comment 1 SATYA SRINIVAS K 2024-07-17 04:26:02 UTC
Created attachment 195341 [details]
source document
Comment 2 SATYA SRINIVAS K 2024-07-17 04:26:23 UTC
Created attachment 195342 [details]
Pag_1 aspect ratio
Comment 3 SATYA SRINIVAS K 2024-07-17 04:26:37 UTC
Created attachment 195343 [details]
Page_2 Aspect ration
Comment 4 Bartosz 2024-09-28 15:20:43 UTC
Confirmed.
How did you imported second page?

After import attached document only first page is visible.
Comment 5 Bartosz 2024-09-28 15:22:37 UTC
Created attachment 196766 [details]
Image after import with MS Visio from Office 365
Comment 6 Bartosz 2024-09-28 15:38:55 UTC
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.
Comment 7 Bartosz 2024-09-28 15:42:02 UTC
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?
Comment 8 Bartosz 2024-09-28 15:47:56 UTC
Created attachment 196770 [details]
Example file exported to PDF by Visio (reference file how it should looks like
Comment 9 Bartosz 2024-10-02 21:29:19 UTC
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?
Comment 10 Bartosz 2024-10-08 22:44:59 UTC
Created attachment 196970 [details]
Minimal VSDX file where issue is visible