# Elementname: `AttachFile`

## Description

Attach a ZUGFeRD file.

Allowed attributes: description, filename, name, select, type

Child elements: (none)

Parent elements: AtPageCreation, AtPageShipout, Contents, Layout, Record, SavePages

### Attributes

description (text)

  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 (PDF) name of the included file. Defaults to `ZUGFeRD-invoice.xml`.

select (XPath Expression, optional, since version 3.7.2)

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

type ()

  The type of the included file. Currently only ZUGFeRD is supported.

  ZUGFeRD invoice: | The attached file is an XML file containing a ZUGFeRD invoice

## Example

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

# Commands

- A
- Action
- AddSearchpath
- AtPageCreation
- AtPageShipout
- AttachFile
- Attribute
- B
- Barcode
- Bold
- BoldItalic
- Bookmark
- Box
- Br
- Case
- Circle
- Color
- Column
- Columns
- Compatibility
- Contents
- Copy-of
- DefineColor
- DefineColorprofile
- DefineFontalias
- DefineFontfamily
- DefineTextformat
- Element
- Fallback
- Fontface
- ForAll
- Frame
- Grid
- Group
- Groupcontents
- HSpace
- Hyphenation
- I
- Image
- Include
- Initial
- InsertPages
- Italic
- Layout
- Li
- LoadDataset
- LoadFontfile
- Loop
- Makeindex
- Margin
- Mark
- Message
- NewPage
- NextFrame
- NextRow
- NoBreak
- Ol
- Options
- Otherwise
- Output
- Overlay
- PDFOptions
- Pageformat
- Pagetype
- Paragraph
- PlaceObject
- Position
- PositioningArea
- PositioningFrame
- ProcessNode
- Record
- Regular
- Rule
- SaveDataset
- SavePages
- SetGrid
- SetVariable
- SortSequence
- Span
- Stylesheet
- Sub
- Sup
- Switch
- Table
- TableNewPage
- Tablefoot
- Tablehead
- Tablerule
- Td
- Text
- Textblock
- Tr
- Trace
- Transformation
- U
- URL
- Ul
- Until
- VSpace
- Value
- While

Version: 3.8.0 | Start page | Command reference | Other language: German