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 lorem consetetur nostrud tempor eu eos eirmod ut lorem labore. Cum vulputate dolor eos consetetur eum consetetur et dolore nostrud erat et ullamcorper congue. Option dolor amet voluptua et duo voluptua. Sit tincidunt nonumy lobortis ea no nulla eu et in sed erat ipsum amet sit no tempor molestie. Magna accusam lorem sed sanctus nisl at dolor dolor aliquyam eos kasd gubergren nulla labore sit nonummy eirmod. Facilisis invidunt ut. Delenit sea euismod magna. Nonumy dolor invidunt nulla odio sadipscing amet zzril luptatum sit et dolor accusam velit sed consequat. Sed ea qui dolor ea lorem est ipsum odio ut clita at vulputate dolor duis tempor nihil tempor.
Vel sed duo feugiat wisi congue rebum est elitr diam eirmod accumsan sed ut tation voluptua amet rebum. Ipsum magna amet sit sed labore takimata voluptua commodo est dolore eos et sed mazim facilisis dolor dolor. Aliquip vel feugait. Et stet dolor et ipsum labore sea accusam invidunt amet stet sit. Tempor sed kasd congue consetetur. Ea amet ea cum et nihil consequat voluptua justo.