{"success":true,"data":{"ext":"sxd","name":"OpenOffice spreadsheet","description":"OpenOffice.org Draw document format (SXD) is an XML-based office file format originally created by Sun Microsystems and later maintained by the Apache OpenOffice and LibreOffice communities. It is used for vector drawings, diagrams, and page-layout content within office suites such as OpenOffice Draw and LibreOffice Draw. The format is largely legacy, but it may still be encountered in archived documents; files from untrusted sources should be opened with standard office-suite precautions.","mime":["application/vnd.sun.xml.draw"],"risk_level":"Safe","signatures":[{"hex":"50 4B 03 04","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":["sxc","sxi","sxw"],"usage":{"python":"def is_sxd(file_path: str) -> bool:\n    \"\"\"Check if file is a valid SXD by magic bytes.\"\"\"\n    signature = bytes([0x50, 0x4B, 0x03, 0x04])\n    with open(file_path, \"rb\") as f:\n        return f.read(4) == signature","node":"function isSXD(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x50, 0x4B, 0x03, 0x04]);\n  return buffer.subarray(0, 4).equals(signature);\n}","go":"func IsSXD(data []byte) bool {\n    signature := []byte{0x50, 0x4B, 0x03, 0x04}\n    if len(data) < 4 {\n        return false\n    }\n    return bytes.Equal(data[:4], signature)\n}"}}}