{"success":true,"data":{"ext":"qxd","name":"Quark Express document","description":"QuarkXPress document (QXD) is a page layout file format developed and maintained by Quark for the QuarkXPress desktop publishing application. It is used to store magazine, newspaper, brochure, and other print-layout documents, including text, images, style information, and page structure. The format is a legacy format associated with older QuarkXPress versions; files are generally safe, though compatibility may vary across releases and operating systems.","mime":["application/vnd.Quark.QuarkXPress"],"risk_level":"Safe","signatures":[{"hex":"00 00 49 49 58 50 52","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"},{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]},{"hex":"00 00 4D 4D 58 50 52","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"},{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]},{"hex":"00 00 1A 00 05 10 04","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":[],"usage":{"python":"def is_qxd(file_path: str) -> bool:\n    \"\"\"Check if file is a valid QXD by magic bytes.\"\"\"\n    signature = bytes([0x00, 0x00, 0x49, 0x49, 0x58, 0x50, 0x52])\n    with open(file_path, \"rb\") as f:\n        return f.read(7) == signature","node":"function isQXD(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x00, 0x00, 0x49, 0x49, 0x58, 0x50, 0x52]);\n  return buffer.subarray(0, 7).equals(signature);\n}","go":"func IsQXD(data []byte) bool {\n    signature := []byte{0x00, 0x00, 0x49, 0x49, 0x58, 0x50, 0x52}\n    if len(data) < 7 {\n        return false\n    }\n    return bytes.Equal(data[:7], signature)\n}"}}}