pdfa

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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.

const (
	PDFA1B Level = iota
	PDFA2B
	PDFA2U
	PDFA3B
	PDFA3U
	PDFA4
	PDFA4E
	PDFA4F
)

func (Level) AllowsArbitraryAttachment

func (l Level) AllowsArbitraryAttachment() bool

AllowsArbitraryAttachment returns true if the level allows non-PDF/A attachments.

func (Level) AllowsAttachment

func (l Level) AllowsAttachment() bool

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

func (l Level) AllowsLayers() bool

AllowsLayers returns true if the level allows optional content (A-2+).

func (Level) AllowsTransparency

func (l Level) AllowsTransparency() bool

AllowsTransparency returns true if the level allows transparency (A-2+).

func (Level) IsLevelA1

func (l Level) IsLevelA1() bool

IsLevelA1 returns true if the level is PDF/A-1.

func (Level) IsLevelA2

func (l Level) IsLevelA2() bool

IsLevelA2 returns true if the level is PDF/A-2.

func (Level) IsLevelA3

func (l Level) IsLevelA3() bool

IsLevelA3 returns true if the level is PDF/A-3.

func (Level) IsLevelA4

func (l Level) IsLevelA4() bool

IsLevelA4 returns true if the level is PDF/A-4.

func (Level) String

func (l Level) String() string

type PDFALevel

type PDFALevel = Level

PDFALevel is kept for compatibility; use Level instead.

type ValidationCancelledError

type ValidationCancelledError struct{}

func (*ValidationCancelledError) Error

func (e *ValidationCancelledError) Error() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL