Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.2k views
in Technique[技术] by (71.8m points)

pdf - 适用于PDF文件的MIME媒体类型(Proper MIME media type for PDF files)

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

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

Is there a difference between these two types, and if so what is it?

(这两种类型之间是否存在差异,如果是这样,它是什么?)

Is one preferred over the other?

(一个比另一个更受欢迎吗?)

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.

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

  ask by friedo translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

The standard MIME type is application/pdf .

(标准MIME类型是application/pdf 。)

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

(该分配在RFC 3778中定义,即应用程序/ pdf媒体类型 ,从MIME媒体类型注册表引用。)

MIME types are controlled by a standards body, The Internet Assigned Numbers Authority (IANA).

(MIME类型由标准机构 - 互联网号码分配机构 (IANA)控制。)

This is the same organization that manages the root name servers and the IP address space.

(这是管理根名称服务器和IP地址空间的组织。)

The use of x-pdf predates the standardization of the MIME type for PDF.

(x-pdf的使用早于PDF的MIME类型的标准化。)

MIME types in the x- namespace are considered experimental, just as those in the vnd.

(x- namespace中的MIME类型被认为是实验性的,就像在vnd.)

namespace are considered vendor-specific.

(命名空间被视为特定于供应商。)

x-pdf might be used for compatibility with old software.

(x-pdf可能用于与旧软件兼容。)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...