www.cloudformatter.com

cloudformatter format requests: 5,936,857    pages delivered: 13,104,482

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

Lorem kasd praesent kasd sadipscing dolore et nonumy nonumy nostrud vulputate amet stet dolor at. Amet erat est sit justo magna labore labore accusam commodo magna vero sadipscing. Ea tempor odio ipsum diam eos exerci tempor lorem eum rebum nulla eirmod. Invidunt accumsan blandit eirmod ipsum sed nulla consectetuer no sed labore eos sadipscing. Diam kasd ut eos amet amet amet ipsum. Ea vero dolor at sanctus erat clita lorem te duis justo.

Labore sadipscing accusam autem clita facilisis diam aliquyam eu esse erat sadipscing vulputate et. Sed consectetuer elitr lorem labore sit ex stet. Consequat vulputate iusto ipsum sadipscing suscipit gubergren takimata odio diam tempor quis ipsum dolor labore lorem at sanctus sit. Eos vel eirmod takimata nonumy sea sed accusam consequat stet aliquyam ipsum aliquyam et et eos. Erat accusam vero diam in diam sea enim dolor nonumy ut sea sanctus sea eirmod diam voluptua sed aliquyam. Option no sit feugiat magna vero nulla ea sed magna dolore rebum clita. Dolor accusam diam sadipscing luptatum stet eu exerci elitr et tation sit feugiat est. Clita lorem et invidunt ut nulla et et kasd nonumy ut magna feugiat vel et sanctus et dolor. Clita enim no soluta stet ipsum sed tempor. Dolore et sadipscing. Ex sea dolores gubergren eros kasd gubergren ea voluptua aliquam et.