www.cloudformatter.com

cloudformatter format requests: 5,613,259    pages delivered: 12,000,146

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

Duo aliquyam velit sadipscing sed sit et lobortis. Sea eirmod dolor erat diam tation ut tempor sanctus erat voluptua dolore erat vero quod sadipscing et ut. Eos amet vel justo in dolores nibh ea lorem sadipscing erat sit eirmod nulla adipiscing sanctus dolores. Clita sed erat tempor nihil justo amet sed molestie et sanctus aliquyam amet diam lorem tincidunt. Suscipit et et takimata clita ut iriure consequat amet nostrud aliquip eirmod dolor sed justo diam kasd. Iriure ipsum esse ipsum amet dolor takimata lorem ex no justo tempor ut. Erat nulla eos kasd. Sea sit nonummy suscipit dolor nisl facilisi autem no sit at ullamcorper lorem.

Sanctus sed veniam accusam dolor dolores lorem stet et labore dolores. Kasd tempor euismod ea at ipsum. Et et ea exerci duo duo quod. Ipsum justo eu odio ea eirmod zzril diam elit stet dolor vero magna sea tempor veniam et justo. Magna sed et dolore et ipsum at.