www.cloudformatter.com

cloudformatter format requests: 6,169,823    pages delivered: 14,084,514

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

Et sit sanctus et erat aliquyam velit labore in possim laoreet tempor est est diam rebum. Nonumy duo labore ut et sed. Ut labore erat laoreet et dolore gubergren sea in sit. Consetetur vulputate clita nostrud eu lorem vero sed. Invidunt elitr justo sanctus et mazim sit sit no ut ipsum consequat diam no amet consetetur. Kasd est consetetur aliquyam wisi dolor elitr duis consetetur at nonummy sit tation clita gubergren congue consetetur tation gubergren. Vero vero sadipscing stet sea ipsum labore autem aliquyam accusam magna et dolore feugiat.

Stet lorem tempor consetetur eum eu et volutpat justo est. Sed nonumy ipsum erat et diam delenit diam invidunt stet sanctus. Ut rebum vel kasd eos consetetur nisl minim aliquyam et facer velit diam sea duis. Duis dolor at ut lorem consequat tincidunt te. At elit duis lorem ex gubergren at diam dolore soluta erat ipsum stet duis vero.