Bug 103928 - FILESAVE PPTX Shape text box alignment anchored differently in Powerpoint
Summary: FILESAVE PPTX Shape text box alignment anchored differently in Powerpoint
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
5.2.1.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:pptx
Depends on:
Blocks: PPTX-Shapes
  Show dependency treegraph
 
Reported: 2016-11-14 17:00 UTC by Paul
Modified: 2023-01-16 15:20 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Alignment as displayed by libreoffice (PNG) (2.24 KB, image/png)
2016-11-14 17:01 UTC, Paul
Details
Alignment as displayed by MS 2013 PPTX (PNG) (1.05 KB, image/png)
2016-11-14 17:02 UTC, Paul
Details
example presentation as exported to PPTX with two lines (34.85 KB, application/vnd.openxmlformats-officedocument.presentationml.presentation)
2016-11-14 17:04 UTC, Paul
Details
ODP example made by the reported steps (10.62 KB, application/vnd.oasis.opendocument.presentation)
2021-01-14 08:59 UTC, NISZ LibreOffice Team
Details
The ODP example saved as PPTX (20.58 KB, application/vnd.openxmlformats-officedocument.presentationml.presentation)
2021-01-14 09:01 UTC, NISZ LibreOffice Team
Details
The original document and its PPTX version in Impress and PP 2013 (118.28 KB, image/png)
2021-01-14 09:05 UTC, NISZ LibreOffice Team
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paul 2016-11-14 17:00:35 UTC
Description:
Save presentation to PPTX, and any objects/drawing objects which, when F2 -> text box has been inserted (or double click on object and type in text), and all text and object parameters are left at default, text displays in the 'middle' of the object. 

When said object is displayed in MS powerpoint, the text anchored to the object is at the extreme left side of object. Re-open the PPTX in libreoffice, and everything displays fine. 

does not help to change:
-text anchor point  (edit style, text, text anchor)
-text paragraph 'alignment' or justification



Steps to Reproduce:
1. LibreOffice -> New -> Presentation
2. Clear the page of all objects. (select all, delete)
3. (drawing toolbar) Lines and arrows -> line/line ends with arrow -> draw horizontally.
4. double click on newly created line/arrow -> add some text.
5. press esc. save as 2013 PPTX file.
6. open with powerpoint.


Actual Results:  
text no longer 'in the middle' of the lines(s). Text on the left (in powerpoint)

Expected Results:
text in the middle of line(s)/object(s). 


Reproducible: Always

User Profile Reset: No

Additional Info:
In MS PPT - the only seemingly useful option which achieves a similar result, which only seems to exist in MS PPT 2007 is to convert the selected object, and it seems to result in an additional anchor point in the middle where the text jumps to. Not a viable solution. 





User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.98 Safari/537.36
Comment 1 Paul 2016-11-14 17:01:53 UTC
Created attachment 128751 [details]
Alignment as displayed by libreoffice (PNG)
Comment 2 Paul 2016-11-14 17:02:18 UTC
Created attachment 128752 [details]
Alignment as displayed by MS 2013 PPTX (PNG)
Comment 3 Paul 2016-11-14 17:04:11 UTC
Created attachment 128753 [details]
example presentation as exported to PPTX with two lines
Comment 4 Paul 2016-11-14 17:17:58 UTC
This might be MS being completely retarded as usual and their behaviour is PPTx 2013 display is messed up for the 'correct' tags, but it would be nice if display would work. 

I surmise that the XML MS expects in PPTX is not "how MS would do it".
Comment 5 Paul 2016-11-14 17:22:25 UTC Comment hidden (obsolete)
Comment 6 Xisco Faulí 2016-11-14 17:42:23 UTC
Confirmed in 

Version: 5.3.0.0.alpha1+
Build ID: 757a60d01dd152aadab2ba3c8224252481ce8a88
CPU Threads: 4; OS Version: Linux 4.8; UI Render: default; VCL: gtk3; Layout Engine: new; 
Locale: ca-ES (ca_ES.UTF-8); Calc: group

Issue not reproduced when the document is saved as .ppt
Comment 7 QA Administrators 2018-10-22 02:49:02 UTC Comment hidden (obsolete)
Comment 8 Paul 2018-11-13 18:53:35 UTC
bug remains, tested version 6.0.6.2

followed original steps to reproduce.
Comment 9 Buovjaga 2019-10-22 11:35:32 UTC
Still repro with LibO 6.4 alpha1 and MSO 2013

Versio: 6.4.0.0.alpha1 (x86)
Käännöksen ID: cc57df8f942f239d29cb575ea5a7cb01405db787
CPU-säikeet: 4; Käyttöjärjestelmä: Windows 6.3 Build 9600; Piirtokomponentti: oletus; VCL: win; 
Maa-asetus: fi-FI (fi_FI); Käyttöliittymän kieli: fi-FI
Calc: threaded
Comment 10 Timur 2020-09-24 12:07:26 UTC
Here is missing source before saving. Please attach.
Comment 11 NISZ LibreOffice Team 2021-01-14 08:59:44 UTC
Created attachment 168867 [details]
ODP example made by the reported steps
Comment 12 NISZ LibreOffice Team 2021-01-14 09:01:39 UTC
Created attachment 168868 [details]
The ODP example saved as PPTX

From:

Version: 7.2.0.0.alpha0+ (x64)
Build ID: 80497c7d81af36f703d122ac78baa26387a5854d
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: en-US (hu_HU); UI: en-US
Calc: CL
Comment 13 NISZ LibreOffice Team 2021-01-14 09:05:22 UTC
Created attachment 168869 [details]
The original document and its PPTX version in Impress and PP 2013

Strangely the PPTX displays the same as the ODP in Impress, but not in PP.
Comment 14 NISZ LibreOffice Team 2021-01-14 09:06:06 UTC
Setting to NEW. I see there is something wrong here.
Comment 15 QA Administrators 2023-01-16 03:21:28 UTC Comment hidden (obsolete)
Comment 16 Regina Henschel 2023-01-16 15:20:56 UTC
I think, that it is an error in PowerPoint. LibreOffice writes the line out as <a:prstGeom prst="line" />. This has in presetShapeDefinitions.xml no <rect> element (Shape Text Rectangle; 20.1.9.22 OOXML). Thus it should be the bounding box as default. But PowerPoint treats it so as if <a:rect l="0" t="0" r="0" b="0" />.

LibreOffice could work around this problem of PowerPoint by using <a:custGeom> and explicitly writing out the <a:rect l="l" t="t" r="r" b="b" /> element.

Tested in Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 12e8d57e791bb1befc0716d4d02af7d1d1ccb4ae
CPU threads: 8; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: de-DE (en_US); UI: en-US
Calc: CL threaded