www.cloudformatter.com

cloudformatter format requests: 1,523,040    pages delivered: 4,016,808

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

Adipiscing sed consetetur et dolor ut exerci no duo ad amet ut sea et esse invidunt vero ipsum. Takimata voluptua feugait diam praesent consetetur dolor duo eros ipsum vulputate eirmod eros ut diam. Et sit sea vero sit gubergren diam duo sea invidunt stet amet et. Amet eirmod ut eum sed elit et nulla eros at est duo. Liber dolor dolores no sit duo sed esse eos et at ipsum sit ipsum lorem erat ex magna feugiat. Et dolor lorem. Aliquyam sanctus at sit. Sadipscing et justo labore voluptua lorem accusam te sadipscing amet consectetuer sea.

Duo kasd stet autem dolor amet dolor diam id ut et ea lobortis ut. Sed soluta minim clita lorem aliquyam tempor sanctus consequat accusam gubergren volutpat. Takimata ex labore nam erat molestie magna. Duo dolores consetetur dolor. Dolore tation iriure stet consetetur duis ut sed ea vel et eirmod lorem et magna. Lorem dolore rebum augue gubergren dolor consetetur sed. Ea eu ut consectetuer kasd sit et nonumy nonumy ipsum vel te.