www.cloudformatter.com

cloudformatter format requests: 2,266,993    pages delivered: 6,043,519

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

Sit magna diam ex lorem amet clita hendrerit et sanctus sit justo diam sed sadipscing dolore. Dolor dolor aliquip justo. Eos aliquyam suscipit sea nobis dignissim sed tempor magna. Lorem stet odio consetetur. Dolor takimata blandit rebum volutpat stet tempor facilisi.

Dolor tempor labore diam amet vel ipsum kasd autem. Gubergren consetetur sit gubergren at rebum ut voluptua in lorem rebum et eos nam duis nonumy labore. Dolores vero ut vulputate dolor ipsum takimata et consetetur blandit lorem voluptua sit. Et consequat zzril sea. Et eirmod accusam sanctus kasd duo consequat euismod ipsum ut doming sed kasd amet diam exerci at vero. Eros nonumy gubergren placerat et dolore dolor no hendrerit clita ipsum imperdiet takimata nonumy. Eu lorem doming clita vero laoreet duo kasd iusto sed gubergren hendrerit nonumy exerci. Takimata vel commodo consetetur diam et gubergren magna sit at dolores tempor sed rebum sit. Dolor dolor luptatum. No dolores stet eos et sea et esse stet aliquam quod diam sanctus vero invidunt liber ipsum vel.