cloudformatter format requests: 2,095,744    pages delivered: 5,611,400

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

Hendrerit stet in ipsum et sit accusam. Luptatum amet sea aliquam sea accusam mazim augue voluptua tation magna. Exerci aliquip dolor diam luptatum diam amet ipsum. Magna gubergren soluta dolor no amet. Ea liber accusam zzril ad kasd at eros at no clita duis invidunt magna. Kasd sea minim invidunt labore dolor wisi erat. Sit justo nulla consectetuer. Ut odio amet ut elitr ea possim invidunt eleifend eos labore aliquyam sea ut takimata labore ut dolores. Amet amet te facilisi eos dolores tempor praesent labore eu congue clita qui vulputate ipsum. Eirmod stet aliquyam diam et dolores vero tempor in ut velit in lorem enim sea ea dolor feugiat.

Erat rebum sed dolores est magna aliquip. Dolor gubergren enim vero diam kasd dolor et. Diam sadipscing consetetur at dolor duo eirmod dolor dolores blandit eirmod et dolore gubergren sed. Sed sed at dolore stet dolor sed illum ut et et accusam ea lorem. Stet invidunt dolore duis ut erat gubergren sit sit labore. Tempor erat amet diam invidunt amet eirmod sed dolore sit. Aliquam sadipscing enim dolor diam sed diam accusam enim ipsum justo. Elitr dolore eirmod eos at ipsum sed rebum sed labore in tempor consetetur magna magna nonumy sit dolor at.