What is MIME type "application/vnd.truedoc"?
A MIME type is a string that tells browsers and other tools how to handle a particular kind of file.
The MIME type application/vnd.truedoc is used for a proprietary document format. It is designed to store complex document data and formatting instructions.Files using this MIME type contain structured content that may include text, images, and embedded style information. They require specialized software to open and edit. For example, documents with the file extension PFR use this format.
- Vendor-specific format: It is registered by a company and is not a general standard.
- Structured document management: It encapsulates rich text and formatting for proper display.
- Specialized usage: Only applications that support TrueDoc files can work with them.
For more detailed technical information, you might visit the IANA media types registry.
Associated file extensions
Usage Examples
HTTP Header
When serving content with this MIME type, set the Content-Type header:
Content-Type: application/vnd.truedoc
HTML
In HTML, you can specify the MIME type in various elements:
<a href="file.dat" type="application/vnd.truedoc">Download file</a>
Server-side (Node.js)
Setting the Content-Type header in Node.js:
const http = require('http');
http.createServer((req, res) => {
res.setHeader('Content-Type', 'application/vnd.truedoc');
res.end('Content here');
}).listen(3000);
Associated file extensions
FAQs
What is the application/vnd.truedoc MIME type used for?
The MIME type application/vnd.truedoc identifies files used by Bitstream's TrueDoc technology. It is specifically associated with Portable Font Resource (PFR) files, which were designed to embed dynamic fonts into web pages so they display correctly on client systems without requiring the user to install the font.
Which file extension is associated with application/vnd.truedoc?
This MIME type is almost exclusively associated with the .pfr extension. You can learn more about this file type on our PFR page.
Do modern web browsers support application/vnd.truedoc?
No, most modern browsers (Chrome, Firefox, Edge, Safari) do not support TrueDoc or .pfr files natively. This technology was popular during the era of Netscape Navigator 4 and older versions of Internet Explorer but has since been superseded by standard web font formats like WOFF and WOFF2.
How do I configure an Apache server to serve PFR files correctly?
To serve TrueDoc files, add the following line to your .htaccess file or your main Apache configuration file: AddType application/vnd.truedoc .pfr. This ensures the server sends the correct Content-Type header to the browser.
How do I add support for this MIME type in Nginx?
For Nginx, you should update your mime.types file or add a types block inside your server configuration. Use the following syntax: types { application/vnd.truedoc pfr; }.
What should I use instead of application/vnd.truedoc for web fonts?
Since TrueDoc is obsolete, you should use modern standard MIME types for web fonts. The industry standards are font/woff for WOFF files and font/woff2 for WOFF2 files, which provide better compression and universal browser support.
Can I convert .pfr files to modern formats?
Direct conversion of .pfr files can be difficult due to the proprietary nature of the TrueDoc compression. It is usually better to locate the original source font file (such as a .ttf or .otf) and convert that to a modern web font format using tools like FontForge or online web font generators.
General FAQ
What is a MIME type?
A MIME (Multipurpose Internet Mail Extensions) type is a standard that indicates the nature and format of a document, file, or assortment of bytes. MIME types are defined and standardized in IETF's RFC 6838.
MIME types are important because they help browsers and servers understand how to process a file. When a browser receives a file from a server, it uses the MIME type to determine how to display or handle the content, whether it's an image to display, a PDF to open in a viewer, or a video to play.
MIME types consist of a type and a subtype, separated by a slash (e.g., text/html, image/jpeg, application/pdf). Some MIME types also include optional parameters.
How do I find the MIME type for a file?
You can check the file extension or use a file identification tool such as file --mime-type on the command line. Many programming languages also provide libraries to detect MIME types.
Why are multiple MIME types listed for one extension?
Different applications and historical conventions may use alternative MIME identifiers for the same kind of file. Showing them all helps ensure compatibility across systems.