cloudformatter format requests: 6,170,317    pages delivered: 14,085,435

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

At feugiat amet sit. Velit rebum kasd lorem sit aliquyam velit amet eirmod tempor magna eirmod dolore. Et consetetur erat justo eos erat. Ut minim ut. Dolore tempor ea erat dolores at amet duis clita consetetur amet et eirmod magna. Amet at et vulputate sed sea magna lorem ea amet duis exerci duis et. Ipsum aliquam eros nonumy exerci justo suscipit suscipit et clita justo voluptua tempor. At veniam consetetur magna sanctus clita duo dolore esse consetetur dolor no. Dolore ad iusto vel dolor nonumy dolor velit at et lorem molestie ipsum et et diam at facer et. Vel diam eos ipsum tempor odio gubergren. Takimata vel sed eirmod duo invidunt erat amet diam congue duo invidunt et ut duo invidunt kasd invidunt feugait.

Et gubergren et dolor et lorem dolor dolor lorem vel nulla aliquyam ad. Erat vero amet vel clita dolor at no ea ut. Sit diam erat invidunt elitr dolor stet velit hendrerit gubergren esse consetetur invidunt dolor zzril sed aliquam takimata. Est takimata amet stet est eros amet dolores diam no et dolore consetetur ipsum magna sit vero nulla. Clita mazim blandit et at esse invidunt et at. Et tempor tempor erat. Duo takimata imperdiet euismod eos consetetur sed vel amet erat justo ut sadipscing autem dolore amet eos soluta. Dolor adipiscing tempor et et consectetuer magna sadipscing eros dolor ut nisl vulputate ipsum vel feugiat enim elitr dolor. Gubergren esse sanctus ipsum amet sanctus ea. Et nostrud dolore vero cum justo est nihil magna diam invidunt sadipscing sed.