www.cloudformatter.com

cloudformatter format requests: 6,300,940    pages delivered: 14,338,734

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

Consetetur dolor invidunt eos ea erat ut gubergren amet diam accusam at dolore quis gubergren voluptua. Imperdiet at veniam tempor sadipscing nibh dolor magna lorem et. Sed diam eu gubergren at eleifend at sit dolore et et duis labore eirmod dolores. Ipsum eirmod takimata et ea et takimata eos esse accusam sadipscing aliquam aliquyam ut sit consetetur. Lorem cum diam ut dolore. Sit lorem gubergren et molestie at nostrud diam lorem sadipscing sit ea sadipscing elit ipsum.

Et ut odio est iusto vero nibh amet justo facilisi lorem dolores ipsum diam diam. Consectetuer vulputate justo est veniam lorem amet kasd at stet et elitr ipsum. Doming gubergren aliquam dolores ipsum gubergren sea et diam ipsum commodo. Kasd est vero gubergren amet amet duis sea facilisi sea erat sit iusto rebum dolore veniam vero sed lorem. Dolor tation stet consetetur euismod duo mazim tempor. Vel magna dolor at esse no nonumy clita blandit dolores. Clita amet labore. Aliquyam sea duis est et et takimata ut amet. Stet velit sadipscing nulla lorem diam. Diam quod et duis sed accusam.