Documentation
¶
Index ¶
- func ExtractFilters(dict raw.Dictionary) ([]string, []raw.Dictionary)
- type Decoder
- func NewASCII85Decoder() Decoder
- func NewASCIIHexDecoder() Decoder
- func NewCCITTFaxDecoder() Decoder
- func NewCryptDecoder() Decoder
- func NewDCTDecoder() Decoder
- func NewFlateDecoder() Decoder
- func NewJBIG2Decoder() Decoder
- func NewJPXDecoder() Decoder
- func NewLZWDecoder() Decoder
- func NewRunLengthDecoder() Decoder
- type Limits
- type Pipeline
- type Registry
- type StreamResolver
- type UnsupportedError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractFilters ¶
func ExtractFilters(dict raw.Dictionary) ([]string, []raw.Dictionary)
ExtractFilters reads Filter and DecodeParms entries from a stream dictionary.
Types ¶
type Decoder ¶
type Decoder interface {
Name() string
Decode(ctx context.Context, input []byte, params raw.Dictionary) ([]byte, error)
}
func NewASCII85Decoder ¶
func NewASCII85Decoder() Decoder
func NewASCIIHexDecoder ¶
func NewASCIIHexDecoder() Decoder
func NewCCITTFaxDecoder ¶
func NewCCITTFaxDecoder() Decoder
func NewCryptDecoder ¶
func NewCryptDecoder() Decoder
func NewDCTDecoder ¶
func NewDCTDecoder() Decoder
func NewFlateDecoder ¶
func NewFlateDecoder() Decoder
func NewJBIG2Decoder ¶
func NewJBIG2Decoder() Decoder
func NewJPXDecoder ¶
func NewJPXDecoder() Decoder
func NewLZWDecoder ¶
func NewLZWDecoder() Decoder
func NewRunLengthDecoder ¶
func NewRunLengthDecoder() Decoder
type Pipeline ¶
type Pipeline struct {
// contains filtered or unexported fields
}
func NewPipeline ¶
NewPipeline constructs a pipeline with provided decoders and limits.
func (*Pipeline) DecodeWithResolver ¶
func (p *Pipeline) DecodeWithResolver(ctx context.Context, input []byte, filterNames []string, params []raw.Dictionary, resolver StreamResolver) ([]byte, error)
DecodeWithResolver decodes a stream using the provided filters and optional resolver.
type StreamResolver ¶
StreamResolver resolves referenced streams to decoded bytes for filters that need auxiliary data (e.g., JBIG2Globals).
type UnsupportedError ¶
type UnsupportedError struct{ Filter string }
UnsupportedError reports a filter that is recognized but not implemented.
func (UnsupportedError) Error ¶
func (e UnsupportedError) Error() string
Click to show internal directories.
Click to hide internal directories.