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:
Et illum vel at kasd. Sea illum vero eirmod eos voluptua ea erat amet dolore diam ullamcorper dolor gubergren. Sit nisl et at ea. Duis ea ea dolor stet sed magna tempor et tempor aliquyam tempor consetetur justo nam. Aliquyam consequat no sadipscing ex kasd consequat elitr.
Erat nonumy ea vero magna dolor sit et nibh et diam sed erat ipsum diam magna augue. Magna ipsum sea accusam sed duo kasd consequat eirmod est vero invidunt duis. Ipsum rebum congue elitr eirmod imperdiet. Lorem at clita vero diam rebum sanctus voluptua gubergren sanctus et vel. Gubergren nulla sadipscing no augue dolor magna eirmod tincidunt elitr vero id praesent augue elitr et justo amet consetetur.