Documentation
¶
Overview ¶
Package filter implements the PDF stream filters needed for read-only inspection of document structure: FlateDecode (with predictors), LZW, ASCII85, ASCIIHex, RunLength.
Image-only filters (DCTDecode, JBIG2Decode, JPXDecode, CCITTFaxDecode) are intentionally not implemented — pdfdisassembler does not decode image streams.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsImageFilter ¶
IsImageFilter reports whether name designates one of the image-only filters that pdfdisassembler intentionally skips.
Types ¶
type ErrUnsupported ¶
type ErrUnsupported struct{ Name string }
ErrUnsupported is returned for filters this package does not implement.
func (ErrUnsupported) Error ¶
func (e ErrUnsupported) Error() string
type Params ¶
type Params struct {
// FlateDecode/LZWDecode predictor parameters.
Predictor int
Columns int
Colors int
BitsPerComponent int
// LZWDecode early-change flag.
EarlyChange int
// MaxOutput caps decoded bytes per filter; <= 0 means unlimited.
MaxOutput int64
}
Params describes the decode-time parameters for a single filter.
Click to show internal directories.
Click to hide internal directories.