Repository navigation
v0.30.0 - 2026/12/02
Compared with v0.26.0 (82d63a7f5), through tag v0.30.0 (d3e19de53).
Patch migration
- Shape geometry. Replace
set-shape.positionandset-shape.sizewith independentx,y,w, andhfields. Omitted fields keep their effective values. Usedxanddyto move a shape relative to its current position in the parent coordinate space. Use only one ofxanddxand one ofyanddy. Relative moves require a resolvable starting coordinate. Group edits preserve the group's orientation and its children's coordinate space. Supplied widths and heights must be at least one EMU after conversion. - Mutation requirements. Supply a field that performs an edit. For example,
set-slide-backgroundrequiresfillorfollowMaster, andset-runrequirestext,font, orhyperlink. For axis lines, gridlines, trendlines, and error bars, usecolororwidth. Title, series, and point outlines also support dash edits and explicit clears. Query the specific operation withxdoc schema --mode ops --ops set-shape, substituting the operation name as needed. - Classic chart refresh.
set-chart-dataand chart bindings inbind-datanow preserve supported formatting by default, including titles, legends, axes, data labels, and series styles. PasspreserveFormatting: falseto rebuild a classic chart and check the report forchart-formatting-reset. Omit this field for ChartEx targets, including when using legacy flat category data. For classic date axes, useYYYY-MM-DDcategory labels on or after the chart's date-system epoch. A preserving refresh can refuse unsupported workbook-linked formatting, opaque markup, or incompatible combination-chart layouts before replacing the workbook. - Saved patches and sidecars. The patch schema ID remains
pptx-patch/v1. Review saved edits before retrying or replaying them. A sidecar containing the removed shape fields can fail, and a classic chart refresh with no explicitpreserveFormattinguses the new default when replayed.
Agent preview and static checks
- Preview.
xdoc json-rpcnow servespptx.preview, andxdoc mcpexposes it aspptx_preview. PassinputPathand a freshoutputDirto render PNGs and receive thepptx-preview/v1manifest. Use a one-basedslidesselector such as"1,3-5"to select pages, andcontactSheet: trueto request a contact sheet. An explicitcontactOutputPathmust also be unused. If you supplyintent, usefeature: "convert"andoutputType: "png". Selecting fewer pages still counts the whole input toward Free limits. - MCP image content.
inlineImagesdefaults tonone. Set it toslideswith an explicitslidesselector, or tocontact-sheetwithcontactSheet: true. Returned images follow manifest order without gaps, up to four images, 720 KiB of original PNG bytes in total, and 3,000 pixels per side. Read the manifest for paths to the other PNGs. The full response has a separate 8 MiB frame limit. If it returnsresponse_frame_too_large, checkerror.dataforpreviewExitCodeand any confirmed artifacts before retrying with fewer slides or with inlining disabled. - Cancellation and partial output. Cancel a queued or rendering preview with
$/cancelRequestin JSON-RPC ornotifications/cancelledin MCP. Once the host permits publication, use the returned result to determine what was written. On partial publication, both protocols report verified files inartifacts. Use a new destination for a retry when a failed call has already written files. - Static checks and discovery.
pptx.vision-checkin JSON-RPC andpptx_vision_checkin MCP returnpptx-vision/v1. A slide selection scopes the layout findings, while package checks still cover the full deck. Use preview separately to review rendered pixels.xdoc schema --command pptx.previewandxdoc schema --command pptx.vision-checkexposeagentAccess. Both actions run through the CLI and stdio protocols. The daemon supportsinspectandapplyfor its PPTX actions.
Text, shapes, and tables
- Replace one literal match across runs. Use
replace-paragraph-text-rangewithslide,shape,paragraph,find, andreplace. Slide and paragraph indices are zero-based.findmust have exactly one case-sensitive occurrence, counting overlapping occurrences. Pass the exact inspected paragraph assourceTextto guard against stale edits. Use an emptyreplaceto delete the match. Cross-run edits require equivalent formatting and link behavior and stop at breaks, tabs, fields, formulas, or unrecognized markup. The operation preserves stored frame geometry. Check the result visually for text fit. - Replace paragraph or frame text with a style template. On
set-paragraphandset-text-frame, usepreserveFormatting: truewithtextto carry over first-run formatting and the corresponding paragraph properties. Useset-run.textfor individual runs with distinct styles. Replacement can be refused when it would move or discard structured content such as fields or extensions. Reviewtext-formatting-discardedrisks when rebuilding text without preservation. - Create styled objects in one operation.
add-shapeaccepts fill, line, initial text, font, paragraph format, and rotation.add-text-boxaccepts fill, line, bullets, and either plaintextor structuredparagraphswith per-run fonts and hyperlinks.add-paragraphacceptsformat, andadd-runacceptshyperlink.add-tableacceptsstyleand can infer both dimensions from non-empty rectangulardatawhenrowsandcolumnsare omitted.
Images and asset replay
- Size and replace pictures. For
add-image, usesizing: "auto-aspect"to derive an omitted dimension, orsizing: "contain"to fit and center the image within both supplied dimensions. If intrinsic dimensions are unavailable, check forpicture-intrinsic-size-unavailable. The operation uses the supplied bounds and fills omitted dimensions with the 2-inch fallback.set-imageaccepts replacement media throughassetSourceorbytesBase64withmimeType. Replacement keeps the shape ID, transform, stacking order, animations, and click actions. Crop and mask are retained unless supplied in the same edit. - Validate assets after substitution. Inline
assetSourceimages can infer MIME when it is omitted. Expanded pictures, picture fills, and image bullets go through asset preparation after substitution, and SVG resource limits cover supported picture slots and layout bindings. Use--asset-rootfor file-backed sources. Sidecars that need newer image or inline equation asset rules carry a versioned captured patch. An executable that lacks support for that patch version rejects it before editing. Replaying captured media uses the recorded bytes.
Inspection and diagnostics
xdoc pptx inspect deck.pptx --jsonincludes layout placeholders and text-frame paragraph counts. Run font facts can include resolved size, bold, italic, and color alongside direct values. Classic chart series can include cachedxValuesfor scatter and bubble charts andbubbleSizesfor bubble charts. Treat missing cache entries as unavailable and use the inspected shape ID when names are ambiguous.- Patch diagnostics give more context for missing shape names and out-of-range indices. Dry-run reports can flag off-slide geometry, chart series with a different number of values than categories, and formatting that would be lost.
pptx i18n-text-plancontinues to take one-based slide numbers and emit zero-based patch indices. Generatedset-runoperations omitunitIdwhen the translation has none. - Validate a proposed edit with
xdoc pptx apply --input deck.pptx --patch patch.json --dry-run --json. Inspect the written deck before relying on its geometry or formatting in a subsequent patch.
Conversion and preview cleanup
- Reduced temporary allocations in PPTX parsing and PDF rendering, including chart-cache and gradient processing. Layout previews release their temporary workspace before publishing the PNGs and reporting results.