since version 3.1.1

Attach a file to the PDF. Can be used to attach a ZUGFeRD electronic invoice.

Child elements


Parent elements

AtPageCreation, AtPageShipout, Contents, Layout, Record, SavePages


description (text, optional)

Textual description of the attached file (for the PDF viewer).

filename (text, optional)

The name of the local file to be attached to the PDF.

name (text, optional, since version 3.7.3)

Set the name of the attached file in the PDF document. Defaults to ZUGFeRD-invoice.xml if the attached file type is ZUGFeRD invoice.

select (XPath expression, optional, since version 3.7.2)

The contents of the file. Alternative to reading a file from the hard-drive.

type (text)

The type of the included file. Must be a mime type or ZUGFeRD invoice.


<AttachFile filename="invoice.xml" description="A ZUGFeRD invoice." type="ZUGFeRD invoice"/>


Attaching a ZUGFeRD electronic invoice is available in the Pro plan.

See also

The chapter Attach files to the PDF.