{"success":true,"data":{"ext":"otg","name":"OTG","description":"OpenDocument Graphics Template (OTG) is a template file format in the OpenDocument family, standardized and maintained by OASIS. It is used to create reusable graphic layouts and styles in office applications such as LibreOffice Draw and Apache OpenOffice. The format is generally safe, but as with other document files, content from untrusted sources should be opened with caution because it may reference embedded objects or external resources.","mime":["application/vnd.oasis.opendocument.graphics-template"],"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":["odc","odf","odg","odi"],"usage":{"python":"def is_otg(file_path: str) -> bool:\n    \"\"\"Check if file is a valid OTG by magic bytes.\"\"\"\n    signature = bytes([0x50, 0x4B])\n    with open(file_path, \"rb\") as f:\n        return f.read(2) == signature","node":"function isOTG(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x50, 0x4B]);\n  return buffer.subarray(0, 2).equals(signature);\n}","go":"func IsOTG(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":"Images"}}