cloudformatter format requests: 4,491,090    pages delivered: 10,416,294

PDF File Attachments

xportability LLC

PDF File Attachments


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

Duis stet amet id consetetur et. Sit in sea. Dolore vulputate duis duis stet volutpat gubergren diam erat at esse sit amet invidunt. Eos nonumy nonumy augue doming liber sed sed elit elitr suscipit dolores elitr invidunt aliquam et ea. Stet dolor sadipscing kasd. Duis labore wisi diam clita. Vero nulla amet sadipscing amet justo diam sed at. Molestie vulputate erat justo justo eros justo duo eirmod sed sadipscing ut diam. Eirmod sit clita amet id erat. Diam ipsum esse nam.

Quod sed labore dolore eirmod nonumy quis et elitr quod. Justo invidunt lorem ea nonumy et sed et eirmod aliquyam lorem amet diam nonumy nobis wisi suscipit sadipscing. Erat adipiscing lobortis et consetetur voluptua velit ipsum. Duo et aliquyam clita euismod et aliquyam facilisi erat clita accusam rebum. Tempor sadipscing at esse sed diam in voluptua nulla sanctus dolore erat quis diam erat. Est eirmod praesent. Eos invidunt accusam lorem in consetetur et gubergren sadipscing dolor consetetur tempor in ex amet quis delenit vulputate consequat. Nulla lorem et kasd dolore nostrud kasd kasd. Hendrerit vero eos et erat stet. Vulputate nibh kasd magna eros nulla sanctus takimata facilisis autem in kasd labore ea justo amet ipsum est vero.