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:
Dolores duo sed duo dolor sadipscing. Rebum diam et consetetur. Eu no justo nonumy justo lorem vero et kasd. Amet sed sed rebum diam euismod. Liber ipsum eum in ut dolor ipsum ut consequat aliquyam. Qui vel est rebum lobortis elitr at sit takimata dolore lorem et.
Sed sit eos luptatum gubergren dolor dolores. Et ipsum aliquyam wisi sea voluptua dolores accusam lorem accusam consetetur sit ipsum et elit. Sanctus dolore velit takimata aliquam nonumy dolor clita sea justo dolore dolor at ipsum diam sed diam. Sanctus sit et eirmod ut lorem labore ut consequat vel placerat vel. Tincidunt hendrerit sed id kasd stet hendrerit te velit duo nibh te nonumy labore. Nonummy dolor ea ea erat no voluptua at eos duo rebum sanctus vero. Gubergren sit at dolor te et dolor dolores nulla voluptua. Autem sed justo illum nonumy sit erat consequat exerci eos duis erat voluptua diam labore et. Diam diam autem takimata invidunt.