zugferd

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2026 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const ConformanceLevelEN16931 = "EN 16931"

ConformanceLevelEN16931 is the Factur-X / ZUGFeRD profile that matches the CII XML produced by the cii package. It is written into the XMP metadata.

View Source
const FacturXFileName = "factur-x.xml"

FacturXFileName is the mandatory filename for the XML attachment in ZUGFeRD / Factur-X.

Variables

This section is empty.

Functions

func EmbedXML

func EmbedXML(inputPDFPath string, xmlContent []byte, outputPDFPath string) error

EmbedXML produces a ZUGFeRD / Factur-X PDF/A-3 by embedding the invoice XML into an existing PDF: it attaches the XML as the associated file factur-x.xml and writes the PDF/A identifier, the Factur-X document metadata, and an sRGB output intent.

The XML stays extractable as an ordinary PDF attachment, so a recipient can process either the visual PDF or the structured data.

EmbedXML adds the PDF/A-3 structure but does not repair the visual content: the input PDF must already embed its fonts and use device RGB. A PDF rendered by headless Chromium ("print to PDF") satisfies this. To confirm full conformance, validate the output with veraPDF.

Types

This section is empty.

Jump to

Keyboard shortcuts

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