MIME Type for Pdf Document


👤 Diwas Poudel    🕒 Mar 20 2022    📁 Fix    📜 0 comment

PDF is an abbreviation for Portable Document Format, which was introduced by Adobe in 1993 and has since become a reliable way to present and exchange documents. Adobe Systems created it for easy document exchange. It is Commonly used with Adobe and Acrobat Reader.

The International Organization for Standardization now maintains the PDF format as an open standard (ISO standard)(ISO 32000-1:2008). The good thing about PDF Documents is these documents do not rely on any software or hardware. It is used throughout the web, email, and anywhere else where a document exchange mechanism is used.

These documents may include images, text, graphics, video, audio, buttons, form fields, links, and so on.

There are various Internet MIME Type for PDF found like 

  • application/pdf
  • application/x-pdf
  • application/x-bzpdf
  • application/x-gzpdf
  • applications/vnd.pdf
  • application/acrobat
  • application/x-google-chrome-pdf
  • text/pdf
  • text/x-pdf

Among them, the standard one is:

application/pdf

The assignment for this mime-type is defined in RFC 8118, The application/pdf Media Type, which can be found in the Media Types registry.

Here,

  • Type name: application
  • Subtype name: pdf
  • Required parameters: none
  • Optional parameter: none
  • Encoding considerations: binary

Also, If you have to use content-type for pdf then always use application/pdf  as  content-type:application/pdf

Also Read: MIME Type for Excel Document

FAQ:

How to convert MIME to PDF?

We can easily convert the file extension .mime to PDF with the help of a PDF printer. This software is free of charge, has no restrictions, works in offline versions, and many more.

How to accept and download pdf files in asp.net?

Small snippets are attached here.

Response.ContentType = "application/pdf";  
Response.AppendHeader("Content-Disposition", "attachment; filename=my_pdf_file.pdf");
Response.TransmitFile(Server.MapPath("~/wwwroot/my_pdf_file.pdf"));
Response.End(); 
What is PDF/X, PDF/A, PDF/E?

These are 3 standards PDF files.

  • PDF/X: Ensures that the file will print properly when sent to a professional printing (no RGB colors, all fonts embedded, etc.).
  • PDF/A: Ensures that the file is suitable for archiving, that is, that it will remain readable for a long time despite technological changes.
  • PDF/E: This format is especially useful for engineering documents.
What is xpdf ?

Xpdf is a free and open-source PDF viewer that runs on operating systems that support the Qt toolkit. There is no connection between pdf and xpdf.