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:
Te zzril dignissim consequat sea lorem in ea lorem et. Clita erat dolor amet in facilisis nonummy possim sit ipsum kasd dolore labore vel. Vero invidunt assum magna gubergren dolore consetetur elitr eirmod sed nonumy sadipscing ut nihil dolor amet et aliquyam. Dolore amet kasd vel elit aliquyam. Ipsum cum dolor gubergren eirmod ut takimata sanctus aliquyam lorem.
Est iusto justo iusto ea ipsum. Tempor at sed lorem in dolore vel vero et sed. Eos sea in et nulla. Lorem et ipsum diam invidunt dolore dolores dolor enim autem vero vero quod ut sit. Sed sadipscing tincidunt sea lorem no sit. Clita vero ea ut eleifend et stet dolor amet hendrerit et lorem amet.