Skip to content

BOM in presentation.xml.rels causes blank slides in PowerPoint #162

Description

@white-sheep-altimg

Bug Report

officecli create generates a .pptx with UTF-8 BOM in ppt/_rels/presentation.xml.rels.
This causes PowerPoint (especially Mac version) to fail parsing the relationships file,
resulting in blank slides.

Reproduction

  1. officecli create demo.pptx
  2. officecli add demo.pptx / --type slide --prop title="Title"
  3. Open demo.pptx in PowerPoint → slides are blank

Root Cause

ppt/_rels/presentation.xml.rels starts with 3-byte BOM (0xEF 0xBB 0xBF).

Workaround

Remove BOM:

tail -c +4 ppt/_rels/presentation.xml.rels > tmp && mv tmp ppt/_rels/presentation.xml.rels

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions