{"success":true,"data":{"ext":"vsdx","name":"VSDX","description":"Visio Drawing (.vsdx) is a diagram file format created and maintained by Microsoft as part of the Office Open XML family. It is used for flowcharts, network diagrams, organization charts, floor plans, and other technical drawings in Microsoft Visio and compatible applications. The format is generally safe, but because it is a compressed package that can contain linked content and embedded resources, files from untrusted sources should still be opened with caution.","mime":["application/vnd.ms-visio.drawing"],"risk_level":"Safe","signatures":[{"hex":"50 4B 03 04","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]},{"hex":"50 4B 05 06","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]},{"hex":"50 4B 07 08","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]}],"related":["ai","cdr","eps","epsf","vsd","cgm"],"usage":{"python":"def is_vsdx(file_path: str) -> bool:\n    \"\"\"Check if file is a valid VSDX 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 isVSDX(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x50, 0x4B, 0x03, 0x04]);\n  return buffer.subarray(0, 4).equals(signature);\n}","go":"func IsVSDX(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}"},"category":"Images"}}