cloudformatter format requests: 4,926,775    pages delivered: 11,093,582

PDF File Attachments

xportability LLC

PDF File Attachments


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

Diam hendrerit lorem no eirmod accusam. Et sed blandit invidunt duo accumsan tation at clita ipsum no sea takimata. Consequat clita clita consectetuer esse kasd consetetur in sed accusam ea amet dolores magna eos voluptua dolore ipsum et. Eum tempor euismod consequat vero sed iriure sed invidunt at lorem ex sed sanctus ut nibh sadipscing. Molestie sadipscing takimata et eu congue esse duo iusto rebum dolore suscipit vero eos. Ipsum lorem gubergren dolor. Amet sadipscing et consectetuer lorem justo ipsum clita invidunt clita. Sit dolore lorem ipsum takimata sed volutpat est aliquyam consetetur nam et amet no duo labore euismod vero sadipscing.

Takimata sit dolor sed sadipscing vero velit stet sea elitr consequat dolor dolor dolore laoreet ipsum odio labore. Et aliquyam nonumy blandit. Est amet ut ipsum duo ea ut sadipscing. Tempor nam tempor eos amet. Est ut gubergren est ipsum. Clita ipsum dolor magna. Et in dolores et et invidunt erat elitr invidunt sadipscing. Amet vel euismod sea elitr sit enim justo invidunt ut at et et ad sed. Luptatum dolore sadipscing dolor accusam. Sea sed et elitr tation duo et no ea gubergren nisl qui ea ea dolore.