You can insert a file attachment into a PDF document using a special tag pdf-attachment. There are two
required attributes filename used as a simple name of the file inside the PDF and href which is a reference
to the file you wish to insert. You should use an appropriate filename with extension so that it will open using the associated application.
<pdf-attachment filename="data.xlsx" href="/Resources/Attachments/data.xlsx"/>
The file data.xlsx is attached inside this PDF here using the code above. We've used a little CSS to style
the <pdf-attachment> tag:
Esse feugiat lorem eos tempor ad nisl takimata. Et invidunt sed sed lorem rebum rebum ut magna in ipsum stet rebum autem nibh consectetuer. Sit dolore est invidunt et dolores at consetetur veniam. Clita sit consetetur sit takimata. Sed diam feugiat et vel gubergren aliquyam et. Sed in eos feugait erat tempor kasd erat est clita.
Sadipscing dolores ut et blandit dolore ipsum dolor takimata voluptua amet rebum. Ut ea amet erat justo diam ut et et est vero dolor adipiscing nonumy et. Elitr nonumy dolor duis gubergren ipsum gubergren takimata justo aliquyam duo diam justo erat lorem ipsum tincidunt. Consectetuer sit et sea ipsum labore stet tempor at nulla sit justo. Molestie clita sit ea tempor veniam dolores erat eleifend at nam feugiat nonumy sanctus diam dolor sanctus dolor no.