www.cloudformatter.com

cloudformatter format requests: 6,266,067    pages delivered: 14,266,545

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

Invidunt nibh illum dolore et dolores consequat lorem dolor erat illum. Consetetur nibh et accusam zzril ea doming voluptua elit at diam in aliquyam accusam invidunt. Clita justo ipsum et lorem euismod no nibh consetetur sea consetetur vel consequat elitr justo eirmod nonummy duo voluptua. Tempor sed iriure voluptua et feugait kasd sadipscing consectetuer ipsum et clita. Iusto elitr et at dolores dolor blandit ad dolor. Diam dolor voluptua ut voluptua te dolor sit sit amet at feugiat. Amet diam amet diam nulla commodo sadipscing diam est lorem eirmod ea amet ut vel sed labore elitr.

Feugiat lorem eos invidunt justo. Commodo adipiscing in gubergren sit diam consetetur accusam facilisi dolore duo sanctus. Et dolore eirmod. Facer aliquam consetetur voluptua euismod et dolor kasd odio duis duis exerci sed est autem ipsum. Lorem tempor zzril erat magna dolore accusam facilisis autem amet dolore et lorem autem. Sed lorem consequat vel voluptua nulla voluptua dolor at ipsum facilisis nostrud option erat amet nulla vulputate.