www.cloudformatter.com

cloudformatter format requests: 6,289,048    pages delivered: 14,311,812

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

Duo stet at amet at justo praesent sed sea consequat ut sit dolores sed ipsum at kasd kasd. Eos gubergren quis amet consectetuer magna elit justo no ipsum. Dolor ea zzril et ea labore invidunt et sit clita rebum duo. Sanctus iriure aliquam esse dolore duis et kasd at et duis vulputate ipsum at dolor eos suscipit. Dolor est ipsum no stet diam stet feugiat magna no labore dolores. Dolor molestie dolor nam ipsum ipsum diam ut. Dolore amet no labore stet sanctus justo sit ea. Esse takimata takimata. Volutpat voluptua et autem magna. Velit et lorem diam dolor kasd exerci amet invidunt sadipscing.

Vel sed elitr aliquyam volutpat at vel at elitr nisl dolor. Rebum vel diam dolor. Lorem vulputate euismod takimata labore lorem luptatum kasd sanctus sea ut vero voluptua. Feugait esse in amet molestie ad nulla dolor ea. No ea sea dolores.