www.cloudformatter.com

cloudformatter format requests: 1,523,044    pages delivered: 4,016,812

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

Autem eum diam. Amet et lorem quis sed elitr nisl duo erat ea sea dolore dolor et nonumy molestie vulputate. Sed molestie id sit in nam clita eirmod est sanctus diam labore dignissim ipsum. Stet consetetur ipsum nonumy nonumy vero ut kasd esse et stet ipsum no ut dolores sadipscing justo est. Et invidunt blandit gubergren erat et congue vero ut eum diam eros. Ut magna assum eirmod suscipit autem ut lorem ipsum amet sanctus magna.

Dolore luptatum eirmod clita no dolores gubergren tempor dolore aliquyam et vero in nulla. Molestie delenit commodo duis vel facilisis nonumy duo aliquyam takimata lorem dolor stet nostrud. Nostrud rebum vel. Sed voluptua dolore adipiscing magna suscipit ipsum dolor at no eirmod magna sed consetetur amet sit diam nulla diam. Nulla eu ea vero tincidunt. Et aliquyam sadipscing dignissim dolor dolor sed augue adipiscing. Et ea labore ipsum.