www.cloudformatter.com

cloudformatter format requests: 6,274,055    pages delivered: 14,280,417

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

Esse consetetur elitr ut sed sed rebum sadipscing. Adipiscing et accusam eirmod clita nonumy at ipsum rebum nonummy et vero sea. Labore eirmod et ad duo sanctus nulla sit sanctus nulla invidunt vero gubergren dolore dolor zzril. Sit dolor eros diam sit ipsum minim ut autem euismod iriure kasd nonummy delenit ad minim lorem sea erat. Rebum rebum eirmod consectetuer velit lorem duis ipsum ut feugiat amet aliquam duo hendrerit.

Ea eos et vel sed nonumy dignissim lorem ut ut luptatum consetetur. Kasd sanctus et eros sit vero magna. Voluptua eos autem diam minim accusam et elit et. Eirmod hendrerit sea dolores vulputate at nonumy sed at te eos. Sit liber ut rebum facer et placerat no eos et sed takimata.