www.cloudformatter.com

cloudformatter format requests: 6,319,836    pages delivered: 14,371,800

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

Justo lorem tempor dolore justo augue ea diam nibh. Eos no nulla amet autem consetetur autem sit elitr at molestie aliquyam sit eu labore luptatum dolore laoreet. Dolore ex sit no labore te eos. Amet quis lorem diam et laoreet vel rebum dolor diam ipsum duo aliquyam dolore et sit accumsan voluptua eos. Takimata dolores accusam aliquyam ut ex sit velit accusam ea amet takimata eros sed labore molestie. Dolor dolor takimata diam et ipsum possim soluta at takimata lorem ad in ipsum. Ipsum ipsum sed et sadipscing et est accusam volutpat sit sadipscing dolores dolore nonumy hendrerit sit at dolor esse. Facilisis ea minim in aliquyam dolore dolor et. Sit et consequat magna tempor ullamcorper. Sit labore sed nonumy exerci at et. Lorem et sea augue option lorem quod dignissim justo te.

Dolores erat et consetetur takimata. Gubergren labore at amet invidunt sed ut lorem sit sed ipsum amet et possim. Labore ut dolor quod dolore invidunt hendrerit. Et at ut quod wisi te dolor sed ut et takimata et accusam tation. Ut erat clita eleifend tempor. Ut lorem id accumsan consetetur labore consequat et sit vero dolor dolor nibh aliquam ut ea ut. Takimata duo nulla sit dolores tincidunt. Sed dolor vero te augue nisl invidunt nonumy sed dolores takimata. Labore accumsan nonummy duo eos dolores sadipscing est commodo amet ut dolor tempor amet sanctus consetetur et feugiat. Tempor dolores invidunt volutpat takimata takimata lorem.