MS Publisher border

application/octet-stream

Safe

Magic Bytes

Offset: 0
5A 4F 4F 20

Microsoft Publisher Border (BDR) is a proprietary resource file developed by Microsoft Corporation for use within its desktop publishing application. These files serve as graphical component libraries that store pre-defined decorative edge elements and border designs used to structure page layouts for newsletters, brochures, and flyers. As a legacy binary format primarily associated with older software versions, it contains static graphical data and presents minimal security risks compared to modern macro-enabled formats.

Extension

.bdr

MIME Type

application/octet-stream

Byte Offset

0

Risk Level

Safe

Validation Code

How to validate .bdr files in Python

Python
def is_bdr(file_path: str) -> bool:
    """Check if file is a valid BDR by magic bytes."""
    signature = bytes([0x5A, 0x4F, 0x4F, 0x20])
    with open(file_path, "rb") as f:
        return f.read(4) == signature

How to validate .bdr files in Node.js

Node.js
function isBDR(buffer: Buffer): boolean {
  const signature = Buffer.from([0x5A, 0x4F, 0x4F, 0x20]);
  return buffer.subarray(0, 4).equals(signature);
}
Go
func IsBDR(data []byte) bool {
    signature := []byte{0x5A, 0x4F, 0x4F, 0x20}
    if len(data) < 4 {
        return false
    }
    return bytes.Equal(data[:4], signature)
}

API Endpoint

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

Related Formats