mirror of
https://github.com/unidoc/unipdf.git
synced 2025-05-14 19:29:50 +08:00

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.
16 lines
390 B
Go
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")
|