Bug 168773 - FILESAVE PPTX Background incorrectly saved into XML when converting certain PPT to PPTX
Summary: FILESAVE PPTX Background incorrectly saved into XML when converting certain P...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: filters and storage (show other bugs)
Version:
(earliest affected)
4.0.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: PPTX-Corrupted Slide-Background
  Show dependency treegraph
 
Reported: 2025-10-09 16:41 UTC by Aron Budea
Modified: 2025-10-09 16:43 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments
ooo24019-1.ppt (69.50 KB, application/vnd.ms-powerpoint)
2025-10-09 16:41 UTC, Aron Budea
Details
ooo24019-1.pptx (saved in PP for reference) (65.16 KB, application/vnd.openxmlformats-officedocument.presentationml.presentation)
2025-10-09 16:43 UTC, Aron Budea
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Aron Budea 2025-10-09 16:41:56 UTC
Created attachment 203226 [details]
ooo24019-1.ppt

The attached PPT presentation is from an old AOO bug report.
After converting to PPTX with Impress, PowerPoint fails to open it, and tries to repair the presentation.

OOXML-Validator gives the following result for each slide:
{"Description":"The element has incomplete content. List of possible elements expected: <http://schemas.openxmlformats.org/drawingml/2006/main:blipFill>,<http://schemas.openxmlformats.org/drawingml/2006/main:gradFill>,<http://schemas.openxmlformats.org/drawingml/2006/main:noFill>,<http://schemas.openxmlformats.org/drawingml/2006/main:pattFill>,<http://schemas.openxmlformats.org/drawingml/2006/main:solidFill>.","Path":{"Namespaces":{},"XPath":"/p:sld[1]/p:cSld[1]/p:bg[1]/p:bgPr[1]","PartUri":"/ppt/slides/slide1.xml"},"Id":"Sch_IncompleteContentExpectingComplex","ErrorType":"Schema"}

Officeotron also notes the problem in each slide:
ERROR      - (slides/slide1.xml:2 col:459) cvc-complex-type.2.4.b: The content of element 'p:bgPr' is not complete. One of '{"http://schemas.openxmlformats.org/drawingml/2006/main":noFill, "http://schemas.openxmlformats.org/drawingml/2006/main":solidFill, 
"http://schemas.openxmlformats.org/drawingml/2006/main":gradFill, "http://schemas.openxmlformats.org/drawingml/2006/main":blipFill, "http://schemas.openxmlformats.org/drawingml/2006/main":pattFill, "http://schemas.openxmlformats.org/drawingml/2006/main":grpFill}' is expected.

The problem is the following bit that gets written in each slideX.xml, removing them from the unzipped files and rezipping the result fixes the issue:
<p:bg>
  <p:bgPr/>
</p:bg>

Not sure why these were written in the first place, the background is coming from the master slide.
Interestingly, if the presentation is saved to PPTX, or just saved back to PPT in PowerPoint first, then the roundtripped file can also be opened in PowerPoint.
The presentation itself suffers some visual issues after roundtripping eg. starting from the PPTX, but that can be reported separately.

Observed with LO 26.2.0.0.alpha0+ (8ea8e254a3151f5390f3a10ff156fcaf8e7c5d5c), 4.0.0.3 / Windows.
Comment 1 Aron Budea 2025-10-09 16:43:10 UTC
Created attachment 203227 [details]
ooo24019-1.pptx (saved in PP for reference)