PDF/A conformance helper that configures a pdf.Writer with ICC profiles and XMP metadata.
// Source: https://github.com/gpdf-dev/gpdf | License: MIT | Copyright 2025
// Provided via justclaw.it.com; keep this notice with the code.
// Package pdfa provides PDF/A conformance support for gpdf.
// It configures a pdf.Writer to produce PDF/A-1b or PDF/A-2b compliant output
// by injecting ICC color profiles, XMP metadata, and OutputIntent dictionaries.
package pdfa
import (
"github.com/gpdf-dev/gpdf/pdf"
)
// Level represents a PDF/A conformance level.
type Level int
const (
LevelA1b Level = iota // PDF/A-1b (ISO 19005-1, Level B)
LevelA2b // PDF/A-2b (ISO 19005-2, Level B)
)
// MetadataInfo holds document metadata for PDF/A XMP.
type MetadataInfo struct {
Title string
Author string
Subject string
Creator string
Producer string
CreateDate s
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key