Documentation
¶
Overview ¶
Package function evaluates the functions of a PDF file (ISO 32000-2, 7.10): sampled (type 0), exponential (type 2), stitching (type 3) and PostScript calculator (type 4) functions. A colour space made by a function, Separation or DeviceN, makes its colours with one.
A function takes m numbers and gives n. Its inputs are clipped to its Domain, and its outputs to its Range where it has one. What a function cannot compute, a PostScript program that leaves too few numbers or divides by zero, gives zeros, clipped to its Range.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Func ¶
type Func struct {
// contains filtered or unexported fields
}
Func is a function, parsed. It is not safe for concurrent use.
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
A Reader reads the functions of one file: a function dictionary or stream, or an array of functions of one output each that together make one of as many outputs as there are functions.
A function that is an object is read once. Where it is referred to again, from the same function or another, the Reader gives what it read, so that a file cannot make it read one object over and over; and the work of all it reads is bounded by maxWork. Neither the Reader nor the functions it gives are safe for concurrent use.
func (*Reader) Check ¶
Check reads the function v as far as its dictionaries go: nothing is decoded, neither the samples of a sampled function nor the program of a calculator function, and the function gives zeros.