office

package module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 21, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

README

office-tool-use

Standalone Go implementation for bounded OOXML/PPTX package handling and PowerPoint template operations extracted from OpenAgent.

Layout

  • *.go: root package with bounded OOXML ZIP package handling, content types, relationships, XML tree helpers, and generic PPTX template analysis/fill workflow.
  • template_*.go: PowerPoint template analysis, validation, scaffolding, filling, chart/image/text/table/notes/transition handling.
  • smartart/: SmartArt-specific implementation files only. No fixtures, tests, or markdown notes live here.

Quick Check

go test ./...

The package is intentionally independent from the OpenAgent tool/MCP layer. Callers can wrap AnalyzeFile, ScaffoldPlan, CheckPlan, and FillFile from their own application boundary.

Documentation

Overview

Package office implements the native PPTX template analyze, scaffold, check, and fill pipeline used by the Casibase PowerPoint tools.

Lower-level OPC ZIP and OOXML package access lives in the ooxml subpackage. Template JSON DTOs live in the model subpackage.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Analyze

func Analyze(pkg *ooxml.Package, sourcePPTX string) (*model.Library, error)

func AnalyzeFile

func AnalyzeFile(pptxPath string, limits ooxml.Limits) (*model.Library, error)

func ApplyPlan

func ApplyPlan(pkg *ooxml.Package, plan *model.Plan, options model.ApplyOptions) (*ooxml.Package, *model.CheckReport, error)

func CheckPlan

func CheckPlan(library *model.Library, plan *model.Plan) *model.CheckReport

func FillFile

func FillFile(input, output string, plan *model.Plan, options model.ApplyOptions, limits ooxml.Limits) (*model.CheckReport, error)

func ScaffoldPlan

func ScaffoldPlan(library *model.Library, selectedSlides []int, includeEmpty bool) *model.Plan

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL