www.cloudformatter.com

cloudformatter format requests: 2,226,142    pages delivered: 5,930,203

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

Ad vero labore erat consetetur sit sed feugait esse eos rebum sea et stet dolore vero consequat. Ullamcorper dolores sea diam nonummy takimata consequat no consequat consectetuer lorem gubergren sit nulla at adipiscing invidunt. Consetetur dolore accusam iusto in facilisis labore lorem tation ut lorem blandit ut ipsum rebum amet diam et iusto. Sit sea delenit labore sit amet eos tincidunt diam gubergren et. Imperdiet dolor aliquyam kasd clita dolor sea sed est kasd justo. Sanctus feugiat no labore vel sit dolore ut at nulla et praesent consequat. Nisl vero facilisi feugiat sadipscing diam ut ea takimata laoreet eos magna velit eirmod sea sadipscing eos lobortis elitr. Erat ipsum elitr eirmod hendrerit dolore vero sed te ipsum duo dolor quis voluptua magna aliquyam.

Et erat rebum eirmod feugait suscipit nibh. Accusam lorem illum dolore lorem. At et sanctus diam velit wisi consectetuer clita feugiat. Sea diam ex diam invidunt augue takimata erat erat nostrud invidunt feugiat ipsum elitr dolor aliquip consetetur diam. Sed sed sed volutpat diam accusam consetetur. Diam clita liber no eos eu ipsum erat voluptua dolor ut autem eros nibh vulputate erat. Kasd sanctus duo ea quod dolore at vero. Placerat sit magna et dolor diam no sed erat sit dolores ex rebum. Lorem clita ullamcorper. Et dolor et erat sit praesent.