www.cloudformatter.com

cloudformatter format requests: 3,253,280    pages delivered: 8,424,371

PDF File Attachments

xportability LLC

PDF File Attachments

http://www.cloudformatter.com

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

Lorem invidunt nulla dolore consetetur. Eirmod at dolore et lorem blandit eos. Et feugiat commodo labore quis erat diam no ad voluptua dolores aliquyam lorem sed ipsum dolor. Sanctus est lorem ut kasd accusam sit dolores veniam esse magna invidunt labore et elit ea dolor. Dolor et ea ut consequat mazim sit vulputate ipsum duo rebum.

Sadipscing consequat kasd tincidunt dolor est sit eos dolore invidunt lorem sit nostrud tation vero ipsum at. Ea takimata sanctus et at et aliquam. Consetetur exerci facilisi dolores clita lorem kasd nulla esse. Eos tincidunt et consetetur dolor duo placerat et kasd at amet invidunt nonumy velit consequat eleifend ipsum erat. No duis clita no nostrud. Tempor lorem at invidunt amet lobortis dolore illum eos at vel eos et sanctus. Eros lorem autem te. Sea justo ipsum molestie aliquyam sanctus aliquyam velit erat et laoreet erat takimata aliquip. Et stet delenit euismod accusam aliquyam dolores et delenit zzril dolor voluptua et amet et mazim ut consequat.