zugferd

package
v0.0.0-...-60df620 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2025 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

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

FacturXFileName is the mandatory filename for the XML attachment in ZUGFeRD.

Variables

This section is empty.

Functions

func EmbedXML

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

EmbedXML attaches the generated XML bytes to an existing PDF file. It creates a ZUGFeRD compatible PDF (visual + XML data).

Note: To be fully compliant with standard validation (PDF/A-3), the input PDF should ideally already be valid PDF/A. This function handles the file attachment structure.

func GenerateXMPTemplate

func GenerateXMPTemplate() string

GenerateXMPTemplate returns the RDF metadata required for a valid PDF/A-3 ZUGFeRD file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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