Bug 168843 - FILESAVE PPTX - PPT exports invalid font size when saved as PPTX
Summary: FILESAVE PPTX - PPT exports invalid font size when saved as PPTX
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
26.2.0.0 alpha0+ master
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: target:26.2.0 target:25.8.4
Keywords:
Depends on:
Blocks:
 
Reported: 2025-10-14 05:26 UTC by Karthik
Modified: 2025-11-26 19:26 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments
PPT file (150.50 KB, application/vnd.ms-powerpoint)
2025-10-14 05:28 UTC, Karthik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Karthik 2025-10-14 05:26:34 UTC
Description:
When we convert PPT presentations which contain font size as zero to PPTX. The resulting file can't be opened in PowerPoint

OOXML expects font size to be at least 1pt.

Steps to Reproduce:
1.Open the attached PPT
2.Save it as PPTX
3.Open the result in PowerPoint

Actual Results:
PowerPoint fails to open the presentation

Expected Results:
No issues when opening the file in PowerPoint


Reproducible: Always


User Profile Reset: Yes

Additional Info:
Running the file through officeotron, gives the below error:
ERROR      - (slideMasters/slideMaster1.xml:2 col:13 139) cvc-minInclusive-valid: Value '0' is not facet-valid with respect to minInclusive '100' for type 'ST_TextFontSize'.
ERROR      - (slideMasters/slideMaster1.xml:2 col:13 139) cvc-attribute.3: The value '0' of attribute 'sz' on element 'a:endParaRPr' is not valid with respect to its type, 'ST_TextFontSize'.
Comment 1 Karthik 2025-10-14 05:28:27 UTC
Created attachment 203315 [details]
PPT file
Comment 2 Commit Notification 2025-10-29 14:41:55 UTC
Karthik committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/c995322f64530992eb9918a65d922e3294558b5c

tdf#168843: Sanitize font size read from PPT

It will be available in 26.2.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 3 Commit Notification 2025-10-30 15:42:22 UTC
Karthik committed a patch related to this issue.
It has been pushed to "libreoffice-25-8":

https://git.libreoffice.org/core/commit/fabe470b421827d8087a614d1f790107f39bb754

tdf#168843: Sanitize font size read from PPT

It will be available in 25.8.4.

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 4 Commit Notification 2025-11-26 15:52:31 UTC
Karthik Godha committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/5f1043dab5435ae036bcbca288ca5c55d4bd930f

tdf#168843: Sanitize font size read from PPT

It will be available in 26.2.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 5 Commit Notification 2025-11-26 19:26:48 UTC
Karthik Godha committed a patch related to this issue.
It has been pushed to "libreoffice-25-8":

https://git.libreoffice.org/core/commit/12c639145df4450f7cba3abe0628ad016071a3a5

tdf#168843: Sanitize font size read from PPT

It will be available in 25.8.4.

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.