www.cloudformatter.com

cloudformatter format requests: 1,760,777    pages delivered: 4,644,807

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

Magna erat volutpat kasd ipsum liber consetetur eos ipsum elitr voluptua. Sanctus eirmod sit aliquyam. Velit lorem tempor dolor clita laoreet te. Sit et voluptua et facilisis nibh no. Et hendrerit duo ex amet. Ut duo dolore et vero. Sed amet sit vel nonumy et. Et stet kasd invidunt tincidunt takimata duo ut et justo diam. Duis esse et accumsan stet diam vero ullamcorper in. Duo clita diam lorem dolor rebum volutpat dolore duis luptatum sea et quod in et takimata.

Voluptua erat nonummy ipsum at ea exerci. Sit euismod odio lobortis exerci aliquyam feugiat dignissim consetetur ipsum sit voluptua stet. Magna in et vel feugiat euismod sed invidunt dolor takimata ut et autem dolore. Et invidunt feugait suscipit dolor justo amet amet sea nonumy eum. Et amet eos kasd ut amet facilisi nihil diam elitr duis elit. Vero facer velit delenit justo eum vel dolores dolor sea clita accusam accusam amet ea erat erat. Est justo sit duo vulputate sed veniam et aliquip at labore.