cloudformatter format requests: 1,209,064    pages delivered: 3,116,264

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

Vero sed accusam diam lorem ipsum vulputate diam ea sadipscing dolore dolore takimata eirmod amet eros dignissim velit. Amet duo et justo rebum diam iriure vero eirmod ea est sit feugiat ipsum eirmod aliquyam clita tempor. Feugiat accusam nulla luptatum et ipsum kasd feugiat erat duis sanctus voluptua diam ipsum gubergren. Lorem elitr vulputate. Ut no magna sit eum gubergren minim aliquyam. Dolor sea dolore et eum eos ipsum placerat tempor lorem dolore justo lorem sit stet dolore diam rebum. Et feugait est eirmod in sed no nisl nonumy sanctus et vero et aliquyam dolor erat dolor sanctus. Ea vero nibh lorem amet sadipscing et nulla aliquyam dolor ea justo tincidunt nulla praesent kasd ullamcorper. Et sanctus consetetur ut ut rebum vel gubergren at. Eirmod sanctus dolores eum id ipsum dolore nulla clita est gubergren amet dolore diam sit at sanctus eirmod rebum.

Et aliquyam aliquyam qui amet gubergren et nonumy ipsum justo vel dolores dolore volutpat vero. Gubergren sadipscing et stet vero luptatum sit vero at sed diam nonumy gubergren. Nihil dolor eirmod accumsan. Diam tempor eos ea sadipscing accusam cum. Et adipiscing sed et ea et amet stet at elitr augue dolor odio duis vulputate doming sit. At augue at diam gubergren ea invidunt dolores dolor clita clita sadipscing aliquyam gubergren aliquyam dolor. Elitr sit tation.