MIME Types

application/pdf

The MIME type for PDF (Portable Document Format) documents.

What Is This?

The application/pdf MIME type indicates that the content is a PDF (Portable Document Format) document. PDF is a file format developed by Adobe for representing documents in a manner independent of application software, hardware, and operating systems.

Common Uses

1

Common Use

Downloadable documents, reports, and forms

2

Common Use

Resumes and CVs

3

Common Use

E-books and technical manuals

4

Common Use

Printable invoices and receipts

Examples

Server Configuration

Serve files with the application/pdf MIME type:

# Nginx
location ~ \.pdf$ {
  add_header Content-Type "application/pdf";
}

# Apache
AddType application/pdf .pdf
HTML Usage

Use this MIME type in HTML or HTTP:

Content-Type: application/pdf

<!-- HTML reference -->
<link rel="preload" href="file.pdf" as="fetch" crossorigin>

Related Entries

More from this reference:

Frequently Asked Questions

Should PDFs open in the browser or download?

Set Content-Disposition: inline to display PDFs in the browser. Set Content-Disposition: attachment to force download. The default behavior varies by browser.

Can I serve PDF with Content-Disposition for security?

Content-Disposition is a hint, not a security measure. For actual access control, use authentication and authorization checks on the server side before serving PDF files.