filter

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2017 License: MIT Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package filter contains implementations for PDF filters.

Index

Constants

View Source
const EOD = '>'

EOD represents the end of data marker.

Variables

View Source
var (

	// ErrUnsupportedFilter signals an unsupported filter type.
	ErrUnsupportedFilter = errors.New("Filter not supported")
)

Functions

func DecodeStream

func DecodeStream(streamDict *types.PDFStreamDict) (err error)

DecodeStream decodes streamDict data by applying its filter pipeline.

func EncodeStream

func EncodeStream(streamDict *types.PDFStreamDict) (err error)

EncodeStream encodes stream dict data by applying its filter pipeline.

Types

type Filter

type Filter interface {
	Encode(r io.Reader) (*bytes.Buffer, error)
	Decode(r io.Reader) (*bytes.Buffer, error)
}

Filter defines an interface for encoding/decoding buffers.

func NewFilter

func NewFilter(filterName string, decodeParms, encodeParms *types.PDFDict) (filter Filter, err error)

NewFilter returns a filter for given filterName and an optional parameter dictionary.

Jump to

Keyboard shortcuts

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