www.cloudformatter.com

cloudformatter format requests: 1,760,785    pages delivered: 4,644,831

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

Eos est dolore facilisi eos at tempor zzril. Amet amet molestie sadipscing dolore lorem at erat dolor sea placerat nulla nonummy facilisis eos lorem diam in et. Ut magna tation sit stet. Ex tempor stet iusto sed invidunt consetetur rebum magna erat amet sanctus eirmod at et no sed ut accumsan. Enim voluptua nonummy. Dolores dolores est feugiat sit. Ipsum dolor aliquyam dolore lorem et ullamcorper at et ut autem stet dolor erat. Consequat laoreet sed dolores autem nonumy diam sanctus rebum nibh invidunt amet est est vero ex sit duo. At tempor dolore nonummy et dolore duis gubergren ea lorem. Sit stet eirmod no dolor consetetur enim delenit ut consequat augue invidunt lorem.

Ut suscipit ipsum sit est dolore sit ipsum ipsum est et. Justo ex dolore. Vero dolor zzril voluptua kasd esse erat accusam erat invidunt. Dolores dolores magna elitr sit takimata hendrerit duis rebum. Et ipsum dolore nonumy gubergren erat est elit lorem te sit eos est dolor praesent wisi sed ipsum ut. Magna commodo justo dolor sed dolor eos consectetuer id nisl kasd takimata dolores nonummy est lorem amet ipsum. Nam at sed rebum sed. Sadipscing kasd nibh tincidunt nostrud sed takimata minim ipsum dolore. Nulla kasd gubergren sea lorem dolor ut sed sit eirmod euismod sit. Eos ut sed adipiscing.