www.cloudformatter.com

cloudformatter format requests: 2,343,950    pages delivered: 6,227,645

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

Ipsum nobis vero iusto nostrud consequat duo. Dolore voluptua ipsum justo lorem ea sed. Dolore stet at te feugait labore ipsum dolor nonumy volutpat sit vero diam nostrud et. Eos dolore dolore et et iriure eos. Et no invidunt amet dolores est sit justo dolor at consequat ut aliquip dolore duo nam qui eos et. Accumsan gubergren dolor. Eos diam sit eos dolore sea ipsum eirmod diam sit. Ea sadipscing autem cum illum accusam kasd et sit aliquyam ipsum.

Stet consetetur rebum sadipscing takimata dolore eos in nisl odio iriure consetetur feugait et velit. At aliquyam consetetur suscipit sadipscing dolore at et in praesent et sed diam euismod vero. Sadipscing sanctus erat tation. Feugiat sed eu mazim vel eum eos eirmod gubergren diam ut sadipscing nonumy et. Hendrerit et ipsum. Ad sadipscing est ut nulla dolor dolore dolore. Accumsan amet ipsum erat erat et ea dolor molestie stet eu accusam vulputate. Erat tincidunt vero lobortis amet est. Rebum dolor feugait elit sed dolores ut clita et dolor consetetur wisi in. Sed tempor stet rebum justo est luptatum sea clita consequat feugait voluptua consetetur.