Documentation
¶
Index ¶
- Variables
- type Enforcer
- type Level
- func (l Level) AllowsArbitraryAttachment() bool
- func (l Level) AllowsAttachment() bool
- func (l Level) AllowsLayers() bool
- func (l Level) AllowsTransparency() bool
- func (l Level) IsLevelA1() bool
- func (l Level) IsLevelA2() bool
- func (l Level) IsLevelA3() bool
- func (l Level) IsLevelA4() bool
- func (l Level) String() string
- type PDFALevel
- type ValidationCancelledError
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultICCProfile = []byte{}/* 6922 elements not displayed */
Functions ¶
This section is empty.
Types ¶
type Enforcer ¶
type Enforcer interface {
Enforce(ctx compliance.Context, doc *semantic.Document, level Level) error
Validate(ctx compliance.Context, doc *semantic.Document, level Level) (*compliance.Report, error)
}
func NewEnforcer ¶
func NewEnforcer() Enforcer
type Level ¶
type Level int
Level represents a PDF/A conformance level shared across writer and enforcer.
func (Level) AllowsArbitraryAttachment ¶
AllowsArbitraryAttachment returns true if the level allows non-PDF/A attachments.
func (Level) AllowsAttachment ¶
AllowsAttachment returns true if the level allows file attachments. A-1: No. A-2: Yes (PDF/A). A-3: Yes (Any). A-4: Yes (Any/PDF/A depending on f/e).
func (Level) AllowsLayers ¶
AllowsLayers returns true if the level allows optional content (A-2+).
func (Level) AllowsTransparency ¶
AllowsTransparency returns true if the level allows transparency (A-2+).
type ValidationCancelledError ¶
type ValidationCancelledError struct{}
func (*ValidationCancelledError) Error ¶
func (e *ValidationCancelledError) Error() string
Click to show internal directories.
Click to hide internal directories.