/
const.go
19 lines (17 loc) · 1017 Bytes
/
const.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package core
import "errors"
// Common errors that may occur on PDF parsing/writing.
var (
// ErrUnsupportedEncodingParameters error indicates that encoding/decoding was attempted with unsupported
// encoding parameters.
// For example when trying to encode with an unsupported Predictor (flate).
ErrUnsupportedEncodingParameters = errors.New("unsupported encoding parameters")
ErrNoCCITTFaxDecode = errors.New("CCITTFaxDecode encoding is not yet implemented")
ErrNoJBIG2Decode = errors.New("JBIG2Decode encoding is not yet implemented")
ErrNoJPXDecode = errors.New("JPXDecode encoding is not yet implemented")
ErrNoPdfVersion = errors.New("version not found")
ErrTypeError = errors.New("type check error")
ErrRangeError = errors.New("range check error")
ErrNotSupported = errors.New("feature not currently supported")
ErrNotANumber = errors.New("not a number")
)