pdf

package
v0.0.0-...-f226991 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrEncrypted                     = errors.New("encrypted PDF is not supported")
	ErrInvalid                       = errors.New("invalid PDF")
	ErrMeasurementSessionUnsupported = errors.New("measurement session is unsupported")
	ErrMeasurementSessionClosed      = errors.New("measurement session is closed")
)

Functions

This section is empty.

Types

type Engine

type Engine interface {
	Inspect(path string) (Info, error)
	WriteRange(inputPath, outputPath string, pageRange domain.PageRange) error
}

func NewPDFCPUEngine

func NewPDFCPUEngine() Engine

type Info

type Info struct {
	Pages     int
	Encrypted bool
}

type MeasurementSession

type MeasurementSession interface {
	MeasureRange(pageRange domain.PageRange) (int64, error)
	Close() error
}

type MeasurementSessionOpener

type MeasurementSessionOpener interface {
	OpenMeasurementSession(inputPath string) (MeasurementSession, error)
}

Jump to

Keyboard shortcuts

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