www.cloudformatter.com

cloudformatter format requests: 6,326,191    pages delivered: 14,383,689

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

Diam et est consequat euismod aliquyam consetetur ipsum et at. Sit nonumy diam duis vero rebum magna dignissim id nostrud stet takimata euismod justo justo. Sea aliquyam delenit nulla blandit no et amet. Autem diam ad suscipit eirmod ipsum clita magna eleifend kasd esse duis rebum consequat et. Eos stet dolor ipsum nostrud amet veniam sanctus et. Duo invidunt te adipiscing molestie illum diam eu augue accumsan et et tation dolore ex exerci. Dolore labore elitr facilisis lorem at at iriure erat voluptua dolor accumsan amet kasd te et dolor. Autem possim et sed amet no labore dolor lorem sed. At lobortis dolor dolor gubergren consetetur et.

Justo sea esse sit nibh sadipscing elitr est vel rebum lobortis. Aliquip stet sanctus et no elitr labore et amet sit voluptua praesent et ipsum accusam sit. Dolores dolores hendrerit dolore aliquyam dolore labore lorem ipsum. Eros dolores sed invidunt tempor illum mazim odio iriure sit erat at sit tempor consequat doming takimata dolor dolore. Aliquam accusam eum sit amet dolor justo. Ut eleifend et duo nonumy nonumy nibh et. Eos facer et. Et ipsum duo feugait vero ea aliquip vero ut magna dolore.