splitter

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultFactories

func DefaultFactories() map[string]Factory

DefaultFactories provides the built-in splitter registry.

Types

type Factory

type Factory func(config.SplitterConfig) (Splitter, error)

Factory constructs a splitter instance from configuration.

type Request

type Request struct {
	Path     string
	MaxPages int
	Options  map[string]any
}

Request encapsulates a single file that may need splitting.

type Result

type Result struct {
	Images  []string
	Stats   map[string]any
	Cleanup func() error
}

Result represents the outcome of a splitter operation.

type Splitter

type Splitter interface {
	Split(ctx context.Context, req Request) (Result, error)
}

Splitter is responsible for producing per-page images from PDFs or passing through images.

Jump to

Keyboard shortcuts

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