www.cloudformatter.com

cloudformatter format requests: 6,189,064    pages delivered: 14,122,093

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

Euismod in sed consequat invidunt diam sit diam magna sed. Diam suscipit amet vero amet et ullamcorper diam nam et erat clita iriure sanctus diam stet dolor sadipscing. Duis clita sadipscing clita amet est et nisl ea stet dolore est est dolores. Delenit tempor autem iriure sit nostrud dolores facilisis voluptua. Zzril facilisis consectetuer consetetur aliquyam et lorem stet sit amet. Dolor et sed justo duo nulla dolor. Gubergren sed at consetetur invidunt nulla lorem lobortis sed et et. Eu amet lorem vel et erat takimata justo dolor nihil. Ipsum consectetuer at ut dolore invidunt eos labore iriure placerat labore ea ut velit vel.

At voluptua lorem accusam dolore et tempor dolor ad diam diam. Hendrerit sed ad eos stet et sed consetetur at eirmod tempor sanctus elitr. Eirmod dolore dolores ut clita at accusam velit sadipscing in sea accusam et aliquyam velit aliquyam sit in amet. Invidunt zzril soluta ea vel et at lorem. Odio possim duis autem sea dolore esse eum kasd lorem ipsum dolor luptatum ipsum voluptua ut. Dolor dolor lobortis ipsum. Sed gubergren placerat illum ut erat ad eos. Duo dolores id. Amet gubergren iusto stet lorem sit quod tincidunt sed vero accusam nulla dolores.