2017-04-05 18:05:38 +00:00
|
|
|
/*
|
|
|
|
* This file is subject to the terms and conditions defined in
|
|
|
|
* file 'LICENSE.md', which is part of this source code package.
|
|
|
|
*/
|
|
|
|
|
2017-04-04 05:51:58 +00:00
|
|
|
package model
|
|
|
|
|
|
|
|
import (
|
|
|
|
"errors"
|
|
|
|
)
|
|
|
|
|
2019-01-10 23:28:03 +00:00
|
|
|
// Errors when parsing/loading data in PDF.
|
2019-04-14 22:22:41 +00:00
|
|
|
// TODO(gunnsth): Unexport errors except if there is a clear use case.
|
2017-04-04 05:51:58 +00:00
|
|
|
var (
|
2018-07-13 17:40:27 +10:00
|
|
|
ErrRequiredAttributeMissing = errors.New("required attribute missing")
|
|
|
|
ErrInvalidAttribute = errors.New("invalid attribute")
|
2019-01-10 23:28:03 +00:00
|
|
|
ErrTypeCheck = errors.New("type check")
|
2019-01-11 00:02:30 +00:00
|
|
|
errRangeError = errors.New("range check error")
|
|
|
|
ErrEncrypted = errors.New("file needs to be decrypted first")
|
|
|
|
ErrNoFont = errors.New("font not defined")
|
|
|
|
ErrFontNotSupported = errors.New("unsupported font")
|
|
|
|
ErrType1CFontNotSupported = errors.New("Type1C fonts are not currently supported")
|
|
|
|
ErrType3FontNotSupported = errors.New("Type3 fonts are not currently supported")
|
|
|
|
ErrTTCmapNotSupported = errors.New("unsupported TrueType cmap format")
|
2017-04-04 05:51:58 +00:00
|
|
|
)
|