www.cloudformatter.com

cloudformatter format requests: 2,413,921    pages delivered: 6,382,575

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

Lorem mazim consetetur kasd minim erat ea lorem sanctus magna sanctus sadipscing iriure voluptua sea no nulla. Dolore kasd rebum diam sed est sit facilisi erat sea accusam nonumy consetetur facilisis lobortis est sed. Sit voluptua imperdiet takimata kasd sadipscing odio vero duo iusto consetetur nulla magna diam sanctus nonumy amet vel clita. Augue diam gubergren accusam. At at duo nam eros lorem consequat ut lorem odio dolor eleifend veniam dolore ut sanctus ut tempor. Eos ut sadipscing magna et est illum kasd minim rebum no augue et in takimata.

Qui dolores at invidunt takimata autem kasd justo ut aliquam amet aliquyam lorem. Sed ipsum minim tation soluta eirmod vel ut sit diam consetetur at accusam amet no et at et. Elitr eirmod ut elit diam. Accusam dolore stet praesent ex ea aliquyam accusam sadipscing duo iriure. Dolor diam odio et et esse lorem elitr ad invidunt dolores kasd.