application/pdf
Application

Overview

application/pdf is the media type for Portable Document Format documents, created by Adobe and standardized as ISO 32000. It reproduces layout, fonts, images, and vector graphics identically across devices and is the de facto standard for print, contracts, and reports.

Details

Browsers receiving application/pdf render it inline in a built-in PDF viewer by default. To force a download send `Content-Disposition: attachment; filename="invoice.pdf"`, or use `inline` to make inline display explicit. For large PDFs, supporting `Accept-Ranges: bytes` and range requests lets a viewer fetch the first page and display progressively (a linearized / fast web view).

PDF can contain JavaScript, forms, attachments, and external links, making it an active-content container. Opening an untrusted PDF exposes the viewer's attack surface. Servers should validate the file signature (files start with `%PDF-`) to reject disguised uploads.

Syntax

e.g. Content-Type: application/pdf

File extensions

.pdf

Notes

Related types

Related headers