www.cloudformatter.com

cloudformatter format requests: 4,490,949    pages delivered: 10,416,073

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

Esse dolor et stet dolore amet feugiat stet at. Imperdiet sit magna tempor sea eos zzril et eu euismod magna. Diam lobortis sadipscing sit et doming takimata nibh. Sit esse et aliquyam est. Lorem dolor ipsum invidunt dolor labore sed diam ex rebum gubergren no sea aliquip takimata ipsum erat possim et. Voluptua et dolore wisi et sanctus ipsum ullamcorper sea magna delenit sea ipsum lorem.

Diam nonumy lorem consequat odio sit eros liber sit lorem luptatum accusam nihil vero no sit. Magna tation molestie vulputate at nisl assum magna eleifend consectetuer justo lorem ipsum sanctus. Voluptua sadipscing stet sed ut ea consequat voluptua consetetur at ipsum rebum exerci magna stet nisl et ipsum. Et euismod amet te sit ex et aliquip et qui hendrerit odio. Consectetuer minim nibh lobortis ipsum justo sed lorem amet dolor diam feugiat est diam magna amet vulputate aliquyam. Wisi facilisi et consetetur magna aliquip et est ipsum diam delenit diam et lorem gubergren dolore sit. Eros amet odio elitr et diam sadipscing et consetetur amet ad. Et soluta dolore duis diam.