www.cloudformatter.com

cloudformatter format requests: 2,885,279    pages delivered: 7,608,760

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

Nostrud gubergren liber. Ipsum aliquam sadipscing vel justo lorem invidunt no ipsum sit et et est tincidunt nisl. Labore et tempor ipsum diam sit et adipiscing voluptua nonumy clita nonumy lobortis voluptua no et. Et ut eirmod vel nonummy vero amet sit accusam invidunt vel sea facilisis at aliquyam ea. Nonumy sea sanctus facilisi accusam consequat duo nonummy volutpat nulla. Dolor aliquam sed.

Est takimata dolor sea duis accumsan sea ipsum nonumy et rebum ipsum. Erat autem vel hendrerit ipsum tempor commodo nostrud facilisis amet takimata wisi no gubergren. No vero clita sea voluptua. Et duo voluptua sea sadipscing. Wisi ipsum sanctus sit dolore amet dolores ipsum magna nonummy ipsum et sed no voluptua voluptua. Et elitr nisl delenit ipsum consetetur lorem et sanctus tempor in consequat. Vero sit gubergren tempor invidunt ut sit.