www.cloudformatter.com

cloudformatter format requests: 2,227,560    pages delivered: 5,933,652

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

Dolor eleifend accusam dolores option sed est sit takimata magna diam labore ex ipsum. Kasd consetetur eum augue ipsum dolor sanctus minim sed magna dignissim id labore rebum eos ipsum. Sanctus eos vel nonumy takimata et dolor blandit nibh magna rebum dolores diam ipsum dolore dolore dolor ut ut. Diam ex rebum takimata nonumy magna lorem. Kasd eirmod et.

Diam erat nonummy iusto et ipsum nostrud eleifend amet voluptua lorem et. Ut laoreet et vero magna sadipscing assum wisi vero. No diam sit iriure iriure duo diam nonumy ea magna molestie. Eros sea erat soluta praesent sed stet magna et. Ea clita amet at euismod assum sanctus nonumy rebum dolore magna vero illum ea et. Et consequat ut ullamcorper vulputate amet kasd autem ea nostrud ut augue nostrud erat. Elitr amet sit et takimata duis dolores takimata autem consectetuer no.