Bug 90407 - AutoFit option not exported in ppt
Summary: AutoFit option not exported in ppt
Status: REOPENED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
4.4.2.2 release
Hardware: Other All
: low minor
Assignee: Not Assigned
URL:
Whiteboard: target:5.4.0 target:5.3.2 target:5.2....
Keywords: filter:ppt
: 94927 111859 (view as bug list)
Depends on:
Blocks: PPT Autofit
  Show dependency treegraph
 
Reported: 2015-04-02 08:51 UTC by Ljiljan
Modified: 2024-11-06 23:57 UTC (History)
10 users (show)

See Also:
Crash report or crash signature:


Attachments
Original file with Autofit text on in textbox (23.66 KB, application/vnd.oasis.opendocument.presentation)
2017-10-20 15:29 UTC, andis.lazdins
Details
File saved by Impress to ppt format (161.00 KB, application/wps-office.ppt)
2017-10-20 15:30 UTC, andis.lazdins
Details
File saved by Impress to pptx format (21.55 KB, application/wps-office.pptx)
2017-10-20 15:31 UTC, andis.lazdins
Details
attachment 137152 and its pptx version in PP 2013 - good (181.11 KB, image/png)
2021-01-13 11:20 UTC, NISZ LibreOffice Team
Details
attachment 137152 and its pptx version in PP 2013 (196.69 KB, image/png)
2021-01-13 11:22 UTC, NISZ LibreOffice Team
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ljiljan 2015-04-02 08:51:12 UTC
While Auto Fit options is supposed to be useful, it actually created a new problem for PPT exporting. When used (I wish it could be disabled by default, but sometimes this is not the case),  text that is "auto fitted" in LibreOffice is not "auto fitted" in Power Point (PPT). Probably in PPTX too, but I didn't test it because PPTX export is still bad.
Comment 1 raal 2015-04-03 12:10:21 UTC Comment hidden (obsolete)
Comment 2 Buovjaga 2015-04-10 13:12:43 UTC Comment hidden (obsolete)
Comment 3 QA Administrators 2015-10-14 19:51:07 UTC Comment hidden (noise)
Comment 4 2460acc 2016-01-23 08:41:12 UTC
Hello, I am not the OP but I posted a very similar bug report with attatchments reference no. 96409. My bug was marked a dupe and closed while this one has been abandoned by the OP.

Please could you consider my post as a follow up to this one (in response the NEEDINFO request). The bug is a real kiler for compatiblity with Powerpoint, as you can imagine - the Autofit is not exported to doc format and hence all the text boxes are mis-sized!

https://bugs.documentfoundation.org//show_bug.cgi?id=96409
Comment 5 raal 2016-01-23 08:45:38 UTC
duplicate bug 96409 with test file, setting to NEW
Comment 6 Commit Notification 2017-02-17 13:26:31 UTC
Tor Lillqvist committed a patch related to this issue.
It has been pushed to "master":

http://cgit.freedesktop.org/libreoffice/core/commit/?id=7277991e78c264025b4894ae07b40fb12cd57ce6

tdf#90407: Export Text AutoFit to .pptx

It will be available in 5.4.0.

The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
http://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 7 Commit Notification 2017-02-24 14:07:22 UTC
Tor Lillqvist committed a patch related to this issue.
It has been pushed to "libreoffice-5-3":

http://cgit.freedesktop.org/libreoffice/core/commit/?id=8a4f99175b09eec634a9a31e9e2a55e9c97d02ca&h=libreoffice-5-3

tdf#90407: Export Text AutoFit to .pptx

It will be available in 5.3.2.

The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
http://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 8 Commit Notification 2017-03-02 13:28:41 UTC
Tor Lillqvist committed a patch related to this issue.
It has been pushed to "libreoffice-5-2":

http://cgit.freedesktop.org/libreoffice/core/commit/?id=3d9e1d16b884417ec892f67da625cf02d897f2cc&h=libreoffice-5-2

tdf#90407: Export Text AutoFit to .pptx

It will be available in 5.2.7.

The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
http://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 9 Xisco Faulí 2017-04-13 09:01:47 UTC Comment hidden (obsolete)
Comment 10 tommy27 2017-05-09 12:15:29 UTC Comment hidden (obsolete)
Comment 11 andis.lazdins 2017-10-20 15:28:11 UTC
The bug is not fixed in 5.3.7.1, Linux 64 bit. Autofit text is off after exporting to ppt or pptx. It is 100% repeatable. The same happens with 5.4.2.1. Considering that Autofit text is very useful function it would be great to get it to work.

Sample files - original Impress file and result of export to ppt and pptx are attached to the report.
Comment 12 andis.lazdins 2017-10-20 15:29:19 UTC
Created attachment 137152 [details]
Original file with Autofit text on in textbox
Comment 13 andis.lazdins 2017-10-20 15:30:26 UTC
Created attachment 137153 [details]
File saved by Impress to ppt format
Comment 14 andis.lazdins 2017-10-20 15:31:07 UTC
Created attachment 137154 [details]
File saved by Impress to pptx format
Comment 15 Timur 2018-08-09 17:00:50 UTC
*** Bug 111859 has been marked as a duplicate of this bug. ***
Comment 16 Buovjaga 2018-09-13 12:02:27 UTC
Bug 119617 was fixed. Does it affect this? Please everyone test with a fresh master build.
Comment 17 Timur 2018-09-14 08:03:58 UTC
No change, still repro.
Comment 18 Timur 2019-01-25 15:41:35 UTC
*** Bug 94927 has been marked as a duplicate of this bug. ***
Comment 19 NISZ LibreOffice Team 2021-01-13 11:15:21 UTC
In the odp when I right click on the shape with the text, the Autofit Text menu is checked.
After saving to pptx and opening it in PP 2013 the textboxes "Reduce size in case of overflow" option is checked and the text does not overflow.

After saving to ppt and opening it in PP 2013 the textboxes "Reduce size in case of overflow" option is NOT checked and the text does overflow.

Changing title.
Comment 20 NISZ LibreOffice Team 2021-01-13 11:20:05 UTC
Created attachment 168848 [details]
attachment 137152 [details] and its pptx version in PP 2013 - good
Comment 21 NISZ LibreOffice Team 2021-01-13 11:22:13 UTC
Created attachment 168849 [details]
attachment 137152 [details] and its pptx version in PP 2013

Still a problem for ppt export in:

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

Interestingly, reopening the ppt in Impress has the Autofit Text option checked and the layout matches the odp. 
But in PP it is bad.
Comment 22 QA Administrators 2023-01-14 03:25:58 UTC Comment hidden (noise, obsolete)
Comment 23 Commit Notification 2023-03-26 15:07:59 UTC
Tomaž Vajngerl committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/628275acb1b9652e65b8c5c013549dce5ad6f5bf

tdf#90407 Change the auto-fit alg. to match better with OOXML

It will be available in 7.6.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 24 Timur 2023-04-11 14:44:12 UTC
PPT still doesn't open with AoutFit in PowerPoint 2016. I set Reopen.
Comment 25 Justin L 2024-11-06 23:57:58 UTC
"Autofit text" appears to be have been introduced right away in LO 3.3, but it wasn't in OOo 3.3.

AFAICS for PPT, LO just ignores any settings in the document, and always applies the value of true for any Body/HalfBody/Quarterbody textboxes.

filter/source/msfilter/svdfppt.cxx's  SdrEscherImport::ProcessObj
    if (bAutoFit && !bAutoGrowHeight && !bAutoGrowWidth)
        pTObj->SetMergedItem(
            SdrTextFitToSizeTypeItem(drawing::TextFitToSizeType_AUTOFIT));
                }

PPTX import is described in oox/source/drawingml/textbodypropertiescontext.cxx.

A Meld of ppt-dumps of a shrink and no-shrink PPT didn't reveal anything - suggesting that this would be a bit-hunting exercise.

I don't think this will get fixed.