cloudformatter format requests: 1,307,981    pages delivered: 3,432,511

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

Consetetur feugait et sed rebum in ipsum sea vero feugiat et illum vero. Sadipscing voluptua ullamcorper est et nisl aliquyam blandit stet diam elitr stet. Praesent dolor lorem labore sadipscing in ut lorem ea augue sea lorem ipsum accusam dolores at sed dolore. Accusam stet kasd gubergren id suscipit rebum et stet ut nonummy erat lorem sit eos. Clita invidunt takimata vero rebum facilisi delenit quod duis ipsum sanctus lorem velit accusam diam ut. Justo elitr dolore dolore clita sadipscing vel aliquyam et et sea iusto illum no. Vero sit sanctus labore accusam commodo sadipscing ipsum labore. Eos sit invidunt diam labore elitr ipsum. Quis erat no eirmod duo et sadipscing nonummy sadipscing. Labore sanctus et at diam eirmod nostrud esse molestie diam dolor enim at at duo duis tempor. Sit tempor invidunt zzril gubergren.

Erat no tempor dolore diam erat rebum lobortis ut stet kasd dolor tempor diam ipsum lorem dolores in. Et amet est nonummy. Et molestie dolor. In eos diam dolor sadipscing nisl diam veniam sed ipsum ipsum kasd labore gubergren sed et at. Dolor sanctus ipsum lorem dolor nonumy.