presentation

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: MIT Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package presentation inspects, edits, validates and renders editable PPTX decks. It preserves the Puppt v1 result schema. Slide geometry is independent of the flowing document SF model; PPTX/SF conversion is not implemented.

Index

Constants

View Source
const SchemaVersion = model.SchemaVersion

Variables

This section is empty.

Functions

func SlideCount

func SlideCount(ctx context.Context, path string) (int, error)

SlideCount returns the number of slides in presentation order.

Types

type ChangeItem

type ChangeItem = model.ChangeItem

type CommandResult

type CommandResult = model.CommandResult

func Edit

func Edit(ctx context.Context, path, specPath, outputPath string) (*CommandResult, error)

Edit applies a supported JSON edit specification and validates the result. Check the returned Status and Validation as well as the error.

func Inspect

func Inspect(ctx context.Context, path string) (*CommandResult, error)

Inspect returns slide text, notes, media relationships and package facts.

func Plan

func Plan(ctx context.Context, path, specPath string) (*CommandResult, error)

Plan resolves a JSON edit specification without writing the deck.

func Render

func Render(ctx context.Context, path string, opts RenderOptions) (CommandResult, error)

Render writes a diagnostic PNG. Unsupported visible content is reported in the returned result; rendering does not imply PowerPoint visual equivalence.

func Review

func Review(ctx context.Context, path, changesPath string) (*CommandResult, error)

Review combines inspection, validation and a prior JSON change report.

func Validate

func Validate(ctx context.Context, path string) (*CommandResult, error)

Validate checks core package structure and relationship reachability.

type EditPlan

type EditPlan = model.EditPlan

type EditSpec

type EditSpec = model.EditSpec

type ErrorItem

type ErrorItem = model.ErrorItem

type Inspection

type Inspection = model.Inspection

type MediaRef

type MediaRef = model.MediaRef

type Metadata

type Metadata = model.Metadata

type RenderOptions

type RenderOptions struct {
	SlideNumber int
	OutputPath  string
	DPI         int
}

RenderOptions selects a slide, destination PNG path and resolution. SlideNumber is 1-based; DPI defaults to 72.

type RenderResult

type RenderResult = model.Render

type RepeatedText

type RepeatedText = model.RepeatedText

type SkipItem

type SkipItem = model.SkipItem

type Slide

type Slide = model.Slide

type Summary

type Summary = model.Summary

type TargetMatch

type TargetMatch = model.TargetMatch

type TargetSpec

type TargetSpec = model.TargetSpec

type TextBlock

type TextBlock = model.TextBlock

type Validation

type Validation = model.Validation

type Warning

type Warning = model.Warning

Jump to

Keyboard shortcuts

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