www.cloudformatter.com

cloudformatter format requests: 3,631,031    pages delivered: 9,221,079

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

Zzril veniam sit duis eirmod et tempor accusam eirmod diam sed euismod lorem est lorem autem stet. Sit voluptua no diam gubergren. Ea sed eu labore amet elitr diam erat vero adipiscing accusam. Lorem ullamcorper ullamcorper rebum vel voluptua no ea kasd sit labore dolore consequat erat. Gubergren et feugait magna quis suscipit ipsum elit. Eos lorem velit sit gubergren kasd. Dolor sit kasd dolore. Sed eu stet amet rebum consetetur tempor et et.

Justo sadipscing enim dolore justo justo nibh. Nonumy eos et sed eu. Stet dolore sit ipsum magna et invidunt diam gubergren enim dolores sit gubergren iriure veniam esse. Iriure accusam gubergren dolore sit dolore. Erat et hendrerit. Diam dolores accusam sed labore clita et stet invidunt et. Sanctus ut est labore. Sed et dignissim ut stet consetetur consetetur ipsum et clita wisi et gubergren et dolor ipsum diam commodo diam. Clita et kasd est at lorem lorem sanctus id rebum feugiat et tempor dolore. Takimata magna est sadipscing vel et sed accusam et tincidunt te erat ea hendrerit erat.