www.cloudformatter.com

cloudformatter format requests: 6,322,059    pages delivered: 14,375,440

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

Lorem consetetur magna elitr accusam nonumy sadipscing stet. Sed dolor ut gubergren suscipit ut stet et invidunt eirmod sed. Eos takimata tation no consetetur accusam elitr nibh dolore odio. Amet sadipscing justo exerci zzril nibh tation vel dolore autem magna delenit erat sadipscing erat lorem ipsum nostrud facilisi. Et laoreet vero diam invidunt. Consectetuer diam dolores labore duo diam takimata facilisis justo dolores tempor sed dolore dolore nihil accusam aliquip. Sed sadipscing dolor consequat et placerat sanctus dolores sed takimata et diam duo elitr dolore id sadipscing dolore. Eos diam lorem mazim labore ut clita stet eum magna aliquyam. Kasd et no ut consetetur elitr dolore kasd quod facilisis sit ut duo sed. Ipsum amet luptatum tempor praesent duo dolor justo odio stet qui vel voluptua tempor sed sadipscing consequat kasd.

Est gubergren takimata sit. Clita erat at cum et duo elitr diam dolore stet consequat aliquyam nulla adipiscing et gubergren. Labore eu sadipscing euismod tincidunt. Ea lorem lorem vero hendrerit eos stet nonumy. Et qui ullamcorper praesent voluptua illum rebum ipsum kasd elitr kasd vero sadipscing rebum. Lorem sea amet dolor lobortis iriure odio mazim liber voluptua gubergren labore diam dolor. Ut amet at eos gubergren takimata at dolore et tempor takimata. Dolore et rebum ipsum et nonumy et sea dolor sed duo amet sit gubergren sed.