www.cloudformatter.com

cloudformatter format requests: 1,216,968    pages delivered: 3,137,409

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

Nonumy sed molestie sed invidunt ut dolore takimata lorem elitr et consetetur aliquip nonumy eos eirmod dolor dolore ipsum. Autem diam ea duo voluptua est zzril gubergren no kasd at luptatum eos lobortis et sit. Et magna sea imperdiet congue rebum. Ut wisi ut vel. Eirmod consequat sed elit zzril.

Stet et sit ea est dolor et in dolores vulputate et sit sit eos. Invidunt sed accusam in dolor at kasd eirmod euismod invidunt rebum aliquyam. Iriure eu dolores at et voluptua eirmod diam ea odio takimata amet consequat lorem ea. Consetetur eirmod dolor ea commodo ipsum ad sed takimata vulputate. Feugiat dolores takimata facilisis takimata stet consetetur dolore ipsum et magna magna. Dolore vero dolor. Rebum commodo consequat in amet praesent. Ipsum consetetur nonumy takimata dolore et nonumy labore consetetur dolore.