适用于PDF文件的MIME媒体类型 [英] Proper MIME media type for PDF files

查看:290
本文介绍了适用于PDF文件的MIME媒体类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用PDF时,我遇到了MIME类型 application / pdf application / x-pdf 等等。

When working with PDFs, I've run across the MIME types application/pdf and application/x-pdf among others.

这两种类型之间是否存在差异,若然后是什么?是一个优先于另一个?

Is there a difference between these two types, and if so what is it? Is one preferred over the other?

我正在开发一个必须提供大量PDF的网络应用程序,我想以正确的方式进行,如果有的话一个。

I'm working on a web app which must deliver huge amounts of PDFs and I want to do it the correct way, if there is one.

推荐答案

标准MIME类型是 application / pdf 。该作业在 RFC 3778,the application / pdf Media Type ,引自 MIME媒体类型注册表

The standard MIME type is application/pdf. The assignment is defined in RFC 3778, The application/pdf Media Type, referenced from the MIME Media Types registry.

MIME类型由标准组织控制,互联网号码分配机构(IANA)。这是管理根名称服务器和IP地址空间的组织。

MIME types are controlled by a standards body, The Internet Assigned Numbers Authority (IANA). This is the same organization that manages the root name servers and the IP address space.

使用 x-pdf 早于PDF的MIME类型的标准化。 x - 命名空间中的MIME类型被认为是实验性的,就像 vnd。命名空间中的MIME类型被认为是特定于供应商的。 x-pdf 可能用于与旧软件兼容。

The use of x-pdf predates the standardization of the MIME type for PDF. MIME types in the x- namespace are considered experimental, just as those in the vnd. namespace are considered vendor-specific. x-pdf might be used for compatibility with old software.

这篇关于适用于PDF文件的MIME媒体类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆