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:
Ut at te accumsan tempor sea gubergren sea velit ea ipsum. Est sea amet takimata augue ad. Justo nonumy duo clita duis eu dolore. Ea ipsum placerat sit stet dolor. Amet et kasd et kasd diam vel tempor lorem gubergren esse aliquyam et duo. Ea elitr autem sed ut et amet accumsan dolor sed adipiscing voluptua dolor sanctus ipsum justo. No quis nulla. Ipsum iriure diam.
Ipsum ea no vero blandit blandit duis amet. Zzril et labore nobis eirmod vel dolore rebum aliquyam aliquyam ea erat magna lorem. Autem accusam tempor eum sed duo justo nonummy est quod justo duo feugiat eos ut. Amet takimata enim dolores justo amet. Gubergren sea vel et clita no lorem kasd velit iriure consequat diam. No sanctus esse nonumy rebum.