Skip to content

PFB (.pfb)

.pfb file signature | application/x-font-type1

PFB (Printer Font Binary) is a binary file format for Adobe Type 1 fonts, originally developed by Adobe Systems and maintained as part of the Type 1 font ecosystem. It is used to distribute outline fonts for PostScript printing, desktop publishing, and legacy software that supports Type 1 font installation. The format is largely obsolete, and modern operating systems may provide limited or no native support; files from untrusted sources should still be handled cautiously.

Safe

Magic Bytes

Offset 0
80 01

Sources: Adobe Type 1 Font Format (PFB segment header)

All Known Signatures

3 signature variants are documented for .pfb files across multiple sources.

Hex Signature Offset Sources
80 01 0 Adobe Type 1 Font Format (PFB segment header)
80 01 FF FF 00 00 25 21 50 53 2D 41 64 6F 62 65 46 6F 6E 74 0 Apache Tika
25 21 50 53 2D 41 64 6F 62 65 46 6F 6E 74 2D 31 2E 30 0 Apache Tika

Extension

.pfb

MIME Type

application/x-font-type1

Byte Offset

0

Risk Level

Safe

Validation Code

How to validate .pfb files in Python

Python
def is_pfb(file_path: str) -> bool:
    """Check if file is a valid PFB by magic bytes."""
    signature = bytes([0x80, 0x01])
    with open(file_path, "rb") as f:
        return f.read(2) == signature

How to validate .pfb files in Node.js

Node.js
function isPFB(buffer: Buffer): boolean {
  const signature = Buffer.from([0x80, 0x01]);
  return buffer.subarray(0, 2).equals(signature);
}

How to validate .pfb files in Go

Go
func IsPFB(data []byte) bool {
    signature := []byte{0x80, 0x01}
    if len(data) < 2 {
        return false
    }
    return bytes.Equal(data[:2], signature)
}

API Endpoint

GET /api/v1/pfb
curl https://filesignature.org/api/v1/pfb

See the full API documentation for all endpoints and parameters.

Related Formats

Frequently Asked Questions

What is a .pfb file?

A .pfb file is identified by the magic bytes 80 01 at byte offset 0. PFB (Printer Font Binary) is a binary file format for Adobe Type 1 fonts, originally developed by Adobe Systems and maintained as part of the Type 1 font ecosystem. It is used to distribute outline fonts for PostScript printing, desktop publishing, and legacy software that supports Type 1 font installation. The format is largely obsolete, and modern operating systems may provide limited or no native support; files from untrusted sources should still be handled cautiously.

What are the magic bytes for .pfb files?

The magic bytes for PFB files are 80 01 at byte offset 0. These bytes uniquely identify the file format regardless of the file extension.

How do I validate a .pfb file?

To validate a .pfb file, read the first bytes of the file and compare them against the known magic bytes (80 01) at offset 0. This is more reliable than checking the file extension alone, as extensions can be renamed.

What is the MIME type for .pfb files?

The primary MIME type for .pfb files is application/x-font-type1.

Is it safe to open .pfb files?

PFB (.pfb) files are generally safe to open. They are classified as low risk because they primarily contain data rather than executable code. However, always ensure files come from a trusted source.