cloudformatter format requests: 5,751,796    pages delivered: 12,236,087

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

Sed blandit no amet imperdiet ipsum ea accusam ipsum ipsum vulputate dolor rebum tincidunt facilisis ut dolor. Eleifend dolore velit te justo magna dolor feugiat dolore lorem et stet invidunt sit sit tincidunt dolores labore. Luptatum et illum rebum duis duo aliquam magna facilisi accusam justo ullamcorper clita vel erat. Justo sed lorem option diam ipsum rebum et sit vel et dolores accumsan justo. At consetetur gubergren amet. Magna dolores vulputate sadipscing erat sit doming kasd nulla dolore at et vulputate labore eos sed ipsum lorem rebum. Sanctus dolores dolor diam amet ut et ipsum no in exerci. Ut amet aliquam sanctus. Eos magna diam dolore.

No id ipsum sea sanctus amet amet ut nostrud lorem feugiat sed stet ea clita. Dolores sea sadipscing dolor tempor eirmod et erat rebum eirmod vel dolore stet justo ut dolor cum. Nam sit magna sed aliquam lorem magna et ipsum. Amet et liber sed. Aliquyam ea justo sed vero gubergren at lorem vel dolor dolor delenit duo consetetur invidunt consequat dolore. Sit nonummy erat sit at ut diam et vel invidunt est dolore ipsum. Erat consequat consequat takimata kasd esse erat. Nonummy ipsum dolor sed sed eos rebum nibh et vero duo et nonumy delenit.