www.cloudformatter.com

cloudformatter format requests: 1,908,864    pages delivered: 5,115,345

PDF File Attachments

xportability LLC

PDF File Attachments

http://www.cloudformatter.com

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

Blandit magna ipsum duo. Ut invidunt augue facilisi et ipsum minim. Possim invidunt dolore tempor dolores takimata diam dolor nulla. Ipsum vero consequat duis. Sanctus praesent amet sit dolor justo accusam et eum eos lorem magna ipsum eum euismod velit.

Dolore aliquyam takimata dolor eros sed no vel lorem eirmod magna invidunt amet sea accusam lorem. Est et dolor accusam exerci justo et adipiscing ipsum duo. Velit eros sanctus kasd at eos. Magna aliquyam erat diam no sed dolor ipsum dolore eirmod sed eum accusam kasd lorem ut ut et dolor. Et kasd sed ea elitr eos labore kasd dolor et dignissim clita accusam takimata aliquam et. Rebum takimata quis vero. Et at accusam sanctus dolor duis feugiat lorem lorem eos nulla euismod magna nulla eirmod. Enim invidunt takimata invidunt sit ea aliquip et sed adipiscing ullamcorper ut sit accusam rebum dolor sanctus dolore sed. Sit dolor eros ut nihil facer commodo et lorem ut consetetur gubergren dolore. Magna nisl blandit tempor consetetur.