filter

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: May 22, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package filter contains PDF filter implementations.

Index

Constants

This section is empty.

Variables

View Source
var (

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

Functions

func List

func List() []string

List return the list of all supported PDF filters.

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, parms map[string]int) (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