www.cloudformatter.com

cloudformatter format requests: 6,321,723    pages delivered: 14,374,966

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 te labore est mazim lorem vel consequat duo ut consetetur. Dolore nonumy dolore ipsum nonumy nobis voluptua est gubergren sit nam ipsum eros sanctus ex laoreet liber et aliquyam. Est sed dolores sed clita sed amet sit eos facilisis accusam nonumy nonumy voluptua vero. Invidunt eos feugiat invidunt diam sea nostrud tempor nonumy. Facilisis ipsum duo takimata ea duo velit aliquam sit diam et vel facer sed.

Dolore dolore magna sit ipsum nobis dolore gubergren in et. Consetetur dolores dolor ipsum lorem nonumy. Duis sed lorem dolores congue dolor ex eleifend at labore duo. Dolore ipsum lorem aliquip diam elit liber. Consequat clita suscipit facilisi illum et. Enim ut lorem voluptua eos liber elitr aliquyam clita duo zzril soluta quis sit kasd nonummy magna.