decoded

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DecodedDocument

type DecodedDocument struct {
	Raw               *raw.Document
	Streams           map[raw.ObjectRef]Stream
	Perms             raw.Permissions
	Encrypted         bool
	MetadataEncrypted bool
}

DecodedDocument contains decoded objects plus a back-reference to the raw doc.

type Decoder

type Decoder interface {
	Decode(ctx context.Context, rawDoc *raw.Document) (*DecodedDocument, error)
}

Decoder transforms Raw IR into Decoded IR (applies filters/security).

func NewDecoder

func NewDecoder(p *filters.Pipeline) Decoder

NewDecoder constructs a basic Decoder that applies filter decoding to streams.

type Object

type Object interface {
	Raw() raw.Object
	Type() string
}

Object wraps a raw object after decoding.

type Stream

type Stream interface {
	Object
	Dictionary() raw.Dictionary
	Data() []byte
	Filters() []string
}

Stream represents a decoded PDF stream (decompressed/decrypted).

Jump to

Keyboard shortcuts

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