Versions in this module Expand all Collapse all v0 v0.1.0 Nov 17, 2026 Changes in this version + const NamespaceFacturX + const NamespaceZUGFeRD1 + const NamespaceZUGFeRD1RC + const NamespaceZUGFeRD2 + var ContainerCatalog = []rules.RuleInfo + var ErrEncrypted = pdf.ErrEncrypted + var ErrNoInvoice = errors.New("zerechnung: no invoice XML attachment in the PDF") + func Create(pdf []byte, inv *invoice.Invoice, opts *CreateOptions) ([]byte, error) + func DetectProfile(xml []byte) (invoice.Profile, error) + func Embed(pdfData, xml []byte, opts *EmbedOptions) ([]byte, error) + type Attachment struct + Description string + Filename string + InAF bool + Metadata *Metadata + MimeType string + ModDate time.Time + PDFVersion string + Relationship string + XML []byte + func Check(pdf []byte, opts *validate.Options) (*validate.Report, *Attachment, error) + func CheckContainer(pdfData []byte) (*Attachment, []rules.Finding, error) + func Extract(pdfData []byte) (*Attachment, error) + func ExtractAll(pdfData []byte) ([]*Attachment, error) + func Read(pdf []byte) (*invoice.Invoice, *Attachment, error) + type CreateOptions struct + Calculate bool + Embed EmbedOptions + Profile invoice.Profile + Validate *validate.Options + type EmbedOptions struct + Attachments []File + Description string + DocumentType string + Filename string + ModDate time.Time + Profile invoice.Profile + Relationship string + Version string + type File struct + Data []byte + Description string + MimeType string + ModDate time.Time + Name string + Relationship string + type Metadata struct + ConformanceLevel string + DocumentFileName string + DocumentType string + NamespaceURI string + PDFAConformance string + PDFAPart int + PDFARev string + Version string + type ValidationError struct + Report *validate.Report + func (e *ValidationError) Error() string