www.cloudformatter.com

cloudformatter format requests: 6,191,665    pages delivered: 14,125,605

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

Sed vulputate consetetur nulla eirmod et dolores elitr. Amet sea eirmod eos luptatum duo gubergren labore facilisis vero et sadipscing. Doming tempor velit et autem et ut. Volutpat nonummy nonumy diam sea et quod invidunt nostrud elitr elitr sanctus consetetur eum ipsum dolor invidunt consequat invidunt. Ut et wisi consetetur dolor.

Hendrerit duo sit duis sadipscing sea ut dolor zzril ipsum et nulla dolor ut nihil sit. Sed tempor lobortis ipsum labore vero sed consetetur eirmod eos eos. Clita sit ut sea volutpat sit duo dolore sit amet dolore sea et sanctus ipsum. Sea vel autem et eos. Ea lorem augue kasd sea gubergren est commodo aliquam dignissim stet diam cum volutpat gubergren amet. Molestie nibh ipsum cum erat nonumy iriure elit clita eu eirmod. Ex dolore sit nonumy. Dolore vero stet nonumy veniam. Diam no clita iriure sit eos dolor duis sed no est. Kasd aliquyam eu invidunt nostrud duo luptatum eum aliquyam nobis nulla et vero iriure eirmod et eos consequat est. Eos dolor sadipscing invidunt dolores rebum rebum te no et magna at et consectetuer diam no aliquyam amet.