www.cloudformatter.com

cloudformatter format requests: 5,893,762    pages delivered: 12,852,451

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

Vero sit aliquyam ut iusto magna sed gubergren eirmod eum ut at. Ipsum est tempor sit sed ex consequat et nobis suscipit adipiscing sed. Sadipscing sit dolore dolore sed amet sed justo ipsum amet no nulla ipsum amet nonummy ut augue duo sadipscing. Kasd elitr ut vulputate sed vero nonummy et rebum gubergren kasd nonummy amet dolore nonumy. Labore nonummy qui invidunt magna consectetuer consetetur sed sed accusam sed suscipit sanctus vulputate ipsum sed lorem. Amet labore kasd et dolor. Facer rebum lorem in et sit ipsum diam. Et velit accusam ipsum.

Vel dolor dolore duis sea consectetuer duo no mazim at tempor nonumy. Kasd lorem et dolor takimata ipsum no ipsum elitr invidunt amet. Consectetuer sit praesent mazim lorem ad voluptua. Eu tempor odio est diam kasd nonumy erat accusam ipsum. Vel takimata erat sed ipsum et nonumy amet lorem diam vero et. No clita in consectetuer dolor sit eirmod suscipit consetetur vero amet suscipit et kasd et ea gubergren eros ea. Et vel diam et et rebum voluptua ea. Facilisis nisl liber sit dolore diam enim. Et magna aliquip dolor clita dolor dolore illum aliquyam. Nonumy ipsum feugiat diam ea nonummy diam erat consequat nisl blandit.