tiwater.pptx.cli 0.1.2

dotnet tool install --global tiwater.pptx.cli --version 0.1.2
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local tiwater.pptx.cli --version 0.1.2
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=tiwater.pptx.cli&version=0.1.2
                    
nuke :add-package tiwater.pptx.cli --version 0.1.2
                    

tiwater-pptx

OpenXML-based command-line utility for PPTX inspection, text export, and placeholder filling.

Usage

tiwater-pptx inspect <input.pptx> --json
tiwater-pptx inspect <input.pptx> --json --detail
tiwater-pptx export-json <input.pptx> [output.json]
tiwater-pptx fill-template <template.pptx> <data.json> <output.pptx>
tiwater-pptx apply-format-edits <input.pptx> <plan.json> <output.pptx>

For local development fallback:

dotnet run --project packages/pptx-cli/pptx.csproj -- inspect <input.pptx> --json

Fill Data

fill-template accepts either a flat JSON object or { "textValues": { ... } }. Placeholders are matched as exact inline tokens like {{title}}.

Detailed Inspect

inspect --json --detail emits slide size, slide paths, shape ids/names/kinds, shape transforms, paragraph alignment, and direct run formatting. Font size is reported in points. Shape coordinates remain in EMU so callers can compare native PPTX positions without lossy conversion.

Format Edit Plan

apply-format-edits copies the input PPTX to the output path, then applies only the targeted run-format operations listed in the plan. Operations are addressed by slide number, shape id, and run index from inspect --detail.

{
  "operations": [
    {
      "slideNumber": 1,
      "shapeId": 2,
      "runIndex": 0,
      "fontFamily": "微软雅黑",
      "fontSize": 16,
      "color": "287341",
      "bold": true,
      "paragraphAlignment": "center"
    }
  ]
}

Supported paragraphAlignment values are left, center, right, justified, and distributed. Missing targets are reported in issues; they are not silently ignored.

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
0.1.2 56 6/5/2026
0.1.1 103 5/6/2026