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
- func SlideCount(ctx context.Context, path string) (int, error)
- type ChangeItem
- type CommandResult
- func Edit(ctx context.Context, path, specPath, outputPath string) (*CommandResult, error)
- func Inspect(ctx context.Context, path string) (*CommandResult, error)
- func Plan(ctx context.Context, path, specPath string) (*CommandResult, error)
- func Render(ctx context.Context, path string, opts RenderOptions) (CommandResult, error)
- func Review(ctx context.Context, path, changesPath string) (*CommandResult, error)
- func Validate(ctx context.Context, path string) (*CommandResult, error)
- type EditPlan
- type EditSpec
- type ErrorItem
- type Inspection
- type MediaRef
- type Metadata
- type RenderOptions
- type RenderResult
- type RepeatedText
- type SkipItem
- type Slide
- type Summary
- type TargetMatch
- type TargetSpec
- type TextBlock
- type Validation
- type Warning
Constants ¶
const SchemaVersion = model.SchemaVersion
Variables ¶
This section is empty.
Functions ¶
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.
type Inspection ¶
type Inspection = model.Inspection
type RenderOptions ¶
RenderOptions selects a slide, destination PNG path and resolution. SlideNumber is 1-based; DPI defaults to 72.
type RenderResult ¶
type RepeatedText ¶
type RepeatedText = model.RepeatedText
type TargetMatch ¶
type TargetMatch = model.TargetMatch
type TargetSpec ¶
type TargetSpec = model.TargetSpec
type Validation ¶
type Validation = model.Validation