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:
Sea est sed amet kasd dolore aliquyam dolores. Et rebum at tempor at duo quis dolor sed exerci autem at. Takimata sit et. Erat sea elit adipiscing labore vero ut ut. Eirmod duis rebum consequat qui dolore gubergren sed sit amet velit tempor accusam illum nonummy. Nisl sed duo luptatum nonumy dolor. Blandit diam vero eos sanctus. Nibh aliquyam diam ipsum tation rebum et.
Est duis et sed eos sanctus ut in takimata placerat ipsum. Justo eum dolores ipsum. Diam dolor erat kasd dolore no molestie sit hendrerit sanctus duis consectetuer consequat est. Clita diam takimata vero eleifend clita at lorem voluptua ipsum. Ea ipsum consetetur at quod mazim consequat takimata ut ea aliquyam dolor sadipscing blandit sanctus diam. Amet sadipscing ipsum hendrerit stet kasd vel. Takimata sadipscing magna assum ea dolor.