Skip to content

PPTX export does not preserve HTML font sizing and causes text wrapping/clipping #5664

Description

@open-design-crew

Summary

The exported PPTX does not preserve the font size and text layout from the original HTML deck. As a result, text wraps differently, overflows, or is partially clipped in the generated presentation.

Current behavior

When exporting a multi-slide HTML deck to PPTX and opening the result in WPS Office, the font size appears inconsistent with the source HTML. Text that fits on one line in the HTML may wrap onto multiple lines in the PPTX, and some copy is not fully visible within the original text area.

Observed examples include the slide heading content wrapping differently and extending beyond the expected layout boundaries.

Expected behavior

The PPTX export should preserve the source HTML typography and layout as closely as possible, including font size, line breaks, text box dimensions, and full text visibility. Exported slides should not introduce unexpected wrapping or clip copy that is visible in the original HTML.

Steps to reproduce

  1. Open a multi-slide HTML deck in the local Open Design Electron app.
  2. Export the deck as PPTX.
  3. Open the generated index.pptx in WPS Office.
  4. Compare the exported slides with the original HTML preview, especially slides containing large headings and Chinese text.
  5. Check font size, line wrapping, text-box overflow, and whether all copy is visible.

Notes

Evidence

Source HTML preview

Source HTML preview

Exported PPTX in WPS Office

Exported PPTX in WPS Office

Why this matters

PPTX is a user-facing export format. Typography and text overflow differences can make exported presentations materially different from the authored design and can hide or truncate important content.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions