{"success":true,"data":{"ext":"wpf","name":"WordPerfect text file","description":"WordPerfect text file (WPF) is a document format associated with Corel's WordPerfect word processor, which created and maintains the format. It is used for saving and exchanging formatted text documents in WordPerfect-based publishing, legal, and office workflows, and can be opened by WordPerfect and some compatible editors. The format is legacy in modern environments, but it is generally considered safe; however, older documents may not render consistently in other software.","mime":[],"risk_level":"Safe","signatures":[{"hex":"81 CD AB","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":[],"usage":{"python":"def is_wpf(file_path: str) -> bool:\n    \"\"\"Check if file is a valid WPF by magic bytes.\"\"\"\n    signature = bytes([0x81, 0xCD, 0xAB])\n    with open(file_path, \"rb\") as f:\n        return f.read(3) == signature","node":"function isWPF(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x81, 0xCD, 0xAB]);\n  return buffer.subarray(0, 3).equals(signature);\n}","go":"func IsWPF(data []byte) bool {\n    signature := []byte{0x81, 0xCD, 0xAB}\n    if len(data) < 3 {\n        return false\n    }\n    return bytes.Equal(data[:3], signature)\n}"}}}