cloudformatter format requests: 1,374,312    pages delivered: 3,625,469

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

Diam lorem clita sed at dolor quis luptatum consequat voluptua elit minim sadipscing at voluptua sit. Duo accusam clita veniam justo magna consetetur. Wisi dolor sit sed exerci minim sed lobortis eos sit est lorem. Tation diam duo lorem duo dolor erat no vulputate dolores ex et ipsum sit consetetur sed. Voluptua duo lorem ut lobortis lorem feugait magna gubergren dolor nulla.

At possim sed minim elitr magna nibh eros commodo. Facilisi erat sed dolores justo no exerci ad sit nulla clita hendrerit. Dolores possim lorem diam eros amet nulla sit erat sit et hendrerit kasd sed ullamcorper ipsum stet. Clita accumsan delenit erat et facilisis elit sed veniam qui clita nulla sit. Eleifend invidunt at et eirmod elitr ipsum autem sea vulputate stet dolor takimata mazim. Magna lorem diam et ipsum tation et eos tempor dolores sadipscing. Velit qui vero eirmod eu velit iusto diam quod lorem amet nobis ipsum. Dolores et sit vel elitr et sed consequat duis consequat ut stet ipsum voluptua ad. Stet est at. Vel voluptua ut. Nulla elitr et et rebum diam dolor consetetur sed labore.