unipdf/pdf/ps/const.go
Gunnsteinn Hall b8a3ec7180 Initial colorspace and functions support.
Implementation of ps parser for function type 4.  Function type 3 not
implemented yet and type 0 needs a better interpolation. Functions and
colorspaces need more testing.
2017-02-22 21:10:57 +00:00

16 lines
390 B
Go

package ps
import (
"errors"
)
// Tolerance for comparing real values.
const TOLERANCE = 0.000001
// Common errors.
var ErrStackUnderflow = errors.New("Stack underflow")
var ErrStackOverflow = errors.New("Stack overflow")
var ErrTypeCheck = errors.New("Type check error")
var ErrRangeCheck = errors.New("Range check error")
var ErrUndefinedResult = errors.New("Undefined result error")