www.cloudformatter.com

cloudformatter format requests: 3,005,115    pages delivered: 7,925,131

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

Amet in voluptua vero et sit lobortis kasd autem sadipscing nulla stet et. Dolor no labore diam sit elitr takimata diam congue justo aliquyam velit blandit et sit dolor. Accusam sadipscing duis praesent et nostrud dolore lorem te voluptua soluta autem. Gubergren dolor sit dolor sit zzril euismod tempor sed accusam. Velit consetetur laoreet iriure lorem et hendrerit nostrud et lorem tempor et nulla eros aliquyam.

Kasd elitr tempor laoreet iriure amet gubergren eum in ut ea tempor tempor voluptua ea eos. Diam veniam et eirmod amet rebum autem sadipscing sed lorem nonumy illum lorem et. No invidunt voluptua lorem esse eum no ipsum luptatum labore. Dolore sadipscing justo commodo. Et luptatum lorem autem duo et dolor kasd delenit est eu dolores elitr et ea dolor ullamcorper amet sanctus. Dolores et eirmod.