{"success":true,"data":{"ext":"wpd","name":"WordPerfect text and graphics file","description":"WordPerfect text and graphics file (WPD) is a document format created for WordPerfect and maintained by Corel as part of the WordPerfect Office suite. It is used for word processing documents that may include formatted text, tables, images, and other layout elements, and it is opened and edited in WordPerfect and compatible office applications. The format is largely legacy, and older files may require converters, but it is generally safe to handle.","mime":["application/vnd.wordperfect"],"risk_level":"Safe","signatures":[{"hex":"FF 57 50 43","offset":0,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"},{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]},{"hex":"61 70 70 6C 69 63 61 74 69 6F 6E 2F 76 6E 64 2E 77 6F 72 64 70 65 72 66 65 63 74 3B","offset":0,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"}]}],"related":["wp","wp5","wp6","odt","ott","rtf"],"usage":{"python":"def is_wpd(file_path: str) -> bool:\n    \"\"\"Check if file is a valid WPD by magic bytes.\"\"\"\n    signature = bytes([0xFF, 0x57, 0x50, 0x43])\n    with open(file_path, \"rb\") as f:\n        return f.read(4) == signature","node":"function isWPD(buffer: Buffer): boolean {\n  const signature = Buffer.from([0xFF, 0x57, 0x50, 0x43]);\n  return buffer.subarray(0, 4).equals(signature);\n}","go":"func IsWPD(data []byte) bool {\n    signature := []byte{0xFF, 0x57, 0x50, 0x43}\n    if len(data) < 4 {\n        return false\n    }\n    return bytes.Equal(data[:4], signature)\n}"},"category":"Office"}}