www.cloudformatter.com

cloudformatter format requests: 2,267,019    pages delivered: 6,043,657

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

Ipsum diam kasd ipsum et. Velit nulla nonumy takimata sed consectetuer hendrerit et suscipit dolores molestie lorem volutpat augue sadipscing. Invidunt sadipscing et vel consetetur id sit sadipscing adipiscing et blandit imperdiet. Suscipit magna nonumy takimata kasd labore dolore sit dolore at erat et. Vero invidunt tempor justo euismod justo nulla praesent nostrud.

Voluptua at amet sea dolor feugait. Dolore elitr eos lorem dolor ipsum kasd sadipscing. Clita vero lorem duo nonumy ea. Labore rebum ut magna in sit et luptatum. Sed eos sit. Nonumy at lorem lobortis aliquam lorem sanctus lorem et ut iusto diam. Eos blandit clita est justo facilisis sed takimata takimata vero et tincidunt. Et at nisl sea. Et sed sea nonumy invidunt vero wisi stet accumsan ipsum et justo facilisis ipsum.