unipdf/pdf/model/const.go
Peter Williams aaf47e1479 Font reading code return partial font info for unsupported fonts.
This allows calling code to check font types which is useful for giving information about PDF files.
2019-01-01 17:29:49 +11:00

23 lines
823 B
Go

/*
* This file is subject to the terms and conditions defined in
* file 'LICENSE.md', which is part of this source code package.
*/
package model
import (
"errors"
)
var (
ErrTypeCheck = errors.New("type check")
ErrRequiredAttributeMissing = errors.New("required attribute missing")
ErrInvalidAttribute = errors.New("invalid attribute")
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")
)