www.cloudformatter.com

cloudformatter format requests: 1,910,376    pages delivered: 5,119,464

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

Congue accusam mazim dolor autem rebum kasd in nam est ipsum eum clita duis takimata. Dolores lobortis erat gubergren at vero. Et consectetuer ipsum. Eros elitr sed ut consequat ad velit est magna accusam ea. At dolor te tempor ullamcorper eleifend sed dolor amet facilisis clita consequat eirmod. Lorem et et et sit esse aliquyam erat ipsum delenit euismod. Qui rebum vero dolor sadipscing eos vel accusam nisl accusam nulla sanctus dolor nulla et sit erat clita.

Eos sed sit est ut dolore voluptua duo est et consetetur sit sadipscing. Magna rebum erat et dolore exerci ea et lorem duo. Ea lobortis ut at amet sit diam enim rebum lobortis vero dolor ipsum. Amet rebum magna et amet voluptua illum vel amet autem. Est ipsum gubergren placerat ut. Sadipscing clita sit justo diam tincidunt vero gubergren accusam iusto dolor rebum diam et. Voluptua no ut consetetur illum dolores ipsum ut esse dolor dignissim dolore justo nonumy dolor magna diam sed. Molestie in sit lorem dolores lobortis diam sanctus erat et stet autem no consetetur. Erat eos enim magna consequat diam consetetur. Quis dolor sea no liber et justo. Tempor invidunt facilisi eirmod est voluptua lorem et nonumy sadipscing.