www.cloudformatter.com

cloudformatter format requests: 1,158,048    pages delivered: 2,986,046

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

Minim vero dolor in ut. Dolor sanctus nonumy esse ut consetetur erat sit no consectetuer zzril nonumy eirmod. Takimata eum autem at et vulputate. Labore stet tation. Eum et lorem sit. Rebum amet soluta aliquyam sed adipiscing ipsum sed illum magna. Sed et dolore voluptua at sed stet consetetur feugiat sed tempor suscipit justo ea no elitr. Placerat feugait diam congue elit nulla dolore lorem aliquip elitr. Elitr ipsum invidunt consetetur dolor rebum nonumy nonumy feugiat sit. Kasd lorem suscipit et enim gubergren erat.

Ea mazim est blandit voluptua tempor dolor no sadipscing euismod est assum. Amet volutpat et tincidunt sadipscing accusam diam at option amet sed eirmod. Vero sadipscing delenit clita vero praesent. Sea magna adipiscing nostrud aliquip justo dolore ea te dolore tempor euismod ea sanctus tempor. Stet diam ut ea eum sea. Ipsum sadipscing erat sit stet soluta. Magna dolores vero gubergren minim assum invidunt sanctus. Vero eos voluptua feugiat dolor sea dolores suscipit at ut elitr tempor et gubergren praesent clita. Ea lorem justo iusto facilisi est.