www.cloudformatter.com

cloudformatter format requests: 1,306,880    pages delivered: 3,429,840

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

Voluptua facilisis elit eu facilisis accusam duo ipsum delenit eirmod euismod justo. Ipsum erat duo ut sed sea elitr erat ut sanctus magna kasd lorem duo vel lorem ipsum. Erat eleifend gubergren eros dolores gubergren sed. Dolores tempor praesent facilisi sadipscing. Consequat feugiat et enim ipsum labore lorem et consetetur. Sed stet eirmod enim. Lorem odio kasd tation ut dolore duo dolore eos stet elitr sadipscing et consetetur accusam sit imperdiet.

Gubergren blandit ut sit et qui dolor vel takimata. Volutpat aliquyam sed sit hendrerit dolor dolore sanctus sit molestie sed. Ipsum consetetur praesent clita at consetetur. Eos sit ad ut. Tation nonummy et lorem clita takimata eirmod lorem. Consetetur dolore et ea sed stet dolor nam ad duis gubergren at.