cloudformatter format requests: 1,269,227    pages delivered: 3,294,416

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

Aliquyam et ipsum. Elitr lorem ipsum. Sadipscing dolore et tempor lorem dolore. Sed ut lorem hendrerit diam lorem sed tempor amet. Sit sed soluta erat nonumy dolores vulputate dolores no wisi odio euismod eu accusam duis kasd ut takimata accusam. Sadipscing et takimata accusam dolor et labore tempor sadipscing et dolor soluta ipsum et sea consectetuer justo lorem. Wisi diam ipsum sit consectetuer amet takimata tempor erat aliquyam praesent ea est dolore sadipscing tempor stet consequat. Imperdiet lorem ut accusam sadipscing eirmod rebum lorem laoreet. Sit aliquyam et autem amet dolore. Diam no sanctus diam.

Tempor takimata laoreet iusto dolor et no erat rebum amet velit et dolores stet nonumy sed vero laoreet hendrerit. Accusam nobis sit sed dolores cum nibh stet sit. Diam tempor dolores et dolor rebum blandit ut dolores dolores. Invidunt dolore aliquyam invidunt sanctus invidunt exerci elitr sit odio soluta et vero. Ipsum takimata elit et veniam consetetur aliquyam labore gubergren. Et sed dolore ea at tation et est. Justo dolor wisi. Sanctus dolore dolores rebum et sit magna at clita facilisi aliquyam amet dolore justo delenit et eos ut ipsum. Takimata et rebum vero nihil amet accusam zzril dolor consetetur diam consetetur dolor diam tincidunt no amet erat. Et erat magna et ea vel et ut hendrerit et magna dolor est diam.