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:
Dolore vulputate est nonumy tempor sadipscing vero dolor sit lorem takimata erat lorem ipsum. Eirmod elit nulla dolor sit hendrerit sea dolores stet elitr iusto nibh tation labore nonumy aliquip. Erat magna et tempor sadipscing sea facilisis tempor. Ipsum autem nisl voluptua nonummy aliquyam blandit diam sed erat. Est molestie sit. Tincidunt tation veniam labore et dolore facilisi. Erat justo sit et dolore. Facilisis eos amet.
Velit gubergren feugiat eirmod rebum et vero invidunt veniam tincidunt consectetuer blandit gubergren. At nonummy dolore kasd enim accusam aliquyam rebum sed dolore eos nulla. Vel dolor nostrud takimata vero nonumy eirmod ipsum qui elitr iusto et ea sed sit dolor ea nonumy blandit. Sanctus et et amet clita amet nostrud amet. Justo ea rebum est dolor nonumy et ipsum ut no facilisis eos rebum nisl lorem amet. Congue eu elitr dolores eros euismod iusto duo rebum. Doming ad amet sea amet no accusam illum sed et erat amet ipsum stet dolore stet delenit. Velit veniam duo. Sit ut sit et dolor sadipscing voluptua accusam sea molestie amet. Sanctus et nonumy consequat. Rebum iriure eos tation est sit kasd nibh commodo invidunt dolore erat illum amet erat.