GenOffice pptx patch (byte-preserving)
genoffice_pptx_patchUpdate text in one or more elements on a slide of a PowerPoint file, preserving the original formatting of untouched elements. Outputs a new .pptx, leaving the source file unchanged.
Instructions
Replace the text of one or more text elements on a slide of a .pptx, using GenOffice element-level byte-preserving patching: only the edited elements are regenerated; every untouched element and zip part keeps its original bytes. The first run/paragraph of each element is used as the formatting template (font, size, color, alignment, bullets survive). Multi-line text with \n creates one paragraph per line. Writes a NEW file, never modifies the original.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to the source .pptx (never modified) | |
| edits | Yes | Text replacements to apply | |
| slide | Yes | Slide number (1-based) to edit | |
| outPath | No | Absolute output path; defaults to <dir>/<name>.patched.pptx |