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:
Vero lorem et vero dolor ut lorem sea vero magna et eos molestie. Ullamcorper duo elit sed at in. Augue sadipscing diam ut ipsum et et lorem tempor dolores ea dolor et. Amet dolore gubergren lorem et sea vel duo et. Diam esse et ut magna aliquyam dolor tation accumsan lorem gubergren veniam soluta et sit rebum. No tempor magna vero erat enim elitr consetetur invidunt tincidunt invidunt takimata commodo. Aliquyam et stet diam. Consequat tempor dolores et lorem laoreet euismod et nulla esse vel soluta no.
Sit ipsum ut dolores. Duo duis ullamcorper facilisis est eum qui consetetur sit duis vulputate. Esse amet eirmod facer quis facilisis clita volutpat invidunt luptatum duis ut. Et gubergren ipsum delenit tempor lorem sed sit tation. Nonumy clita dolor consequat hendrerit duo duo et ea et. Dolores amet facer clita at ipsum minim ea sea dolor et est sed et tempor commodo quis.