{"success":true,"data":{"ext":"odc","name":"ODC","description":"OpenDocument Chart (ODC) is a component of the OpenDocument format family, developed and maintained by OASIS. It is used to store chart documents created in office suites such as LibreOffice and Apache OpenOffice, typically for embedding graphs in spreadsheets and presentations. The format is generally safe and uses standard XML-based packaging, though like other office documents it may contain embedded content that should be reviewed when received from untrusted sources.","mime":["application/vnd.oasis.opendocument.chart"],"risk_level":"Safe","signatures":[{"hex":"50 4B","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":["odf","odg","odi","otg"],"usage":{"python":"def is_odc(file_path: str) -> bool:\n    \"\"\"Check if file is a valid ODC by magic bytes.\"\"\"\n    signature = bytes([0x50, 0x4B])\n    with open(file_path, \"rb\") as f:\n        return f.read(2) == signature","node":"function isODC(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x50, 0x4B]);\n  return buffer.subarray(0, 2).equals(signature);\n}","go":"func IsODC(data []byte) bool {\n    signature := []byte{0x50, 0x4B}\n    if len(data) < 2 {\n        return false\n    }\n    return bytes.Equal(data[:2], signature)\n}"},"category":"Office"}}