cloudformatter format requests: 3,710,299    pages delivered: 9,369,588

PDF File Attachments

xportability LLC

PDF File Attachments


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:

Notice: If you are using some browser-based viewer like Chrome, you probably will not see attachments. It is because that product does not support them. Download the PDF locally and use a PDF viewer that supports them.

Sample Heading

Magna lorem accusam. Consequat iriure lorem blandit et sadipscing ipsum aliquyam. Magna aliquyam sed diam justo sed tation ipsum praesent tincidunt gubergren ea euismod nostrud sit. At dolore sea amet augue ipsum autem vero dolores vero soluta erat sea vero adipiscing dolor rebum consequat. Lorem sanctus tempor erat voluptua sadipscing ut.

Kasd diam clita lorem sed tation. Option amet labore sit dolore et erat sadipscing consetetur consetetur invidunt kasd sadipscing diam. Dolores sadipscing nulla no invidunt eirmod eu dolore dignissim sea vel eos ad nonumy. Eirmod dolore wisi commodo ut dolore aliquyam iriure clita accusam sanctus sed ut aliquip facilisi vel lobortis labore nulla. Et tincidunt dolore at takimata dolores rebum illum iriure dolor no dolor lorem dolore kasd vero. Rebum lorem luptatum lobortis erat dolores eirmod rebum. Nihil autem rebum vel amet nonumy tempor feugiat elitr no. Sed elitr dolores dignissim dolores sit zzril stet nisl vero ipsum diam labore. Diam rebum aliquyam iusto iusto nisl.