{"success":true,"data":{"ext":"djv","name":"DJV","description":"DjVu is a digital document format developed by AT&T Labs for high-compression scanned documents and maintained through the open-source DjVuLibre project. It is used for storing books, magazines, technical papers, and other image-heavy documents, and it is supported by various document viewers and browser plugins. The format is generally safe to open, though older deployments and third-party viewers may be considered legacy in favor of more widely supported formats.","mime":["image/vnd.djvu"],"risk_level":"Safe","signatures":[{"hex":"41 54 26 54 46 4F 52 4D","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"},{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]},{"hex":"44 4A 56","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]}],"related":["djvu","eps","epub","lit","mobi","oxps"],"usage":{"python":"def is_djv(file_path: str) -> bool:\n    \"\"\"Check if file is a valid DJV by magic bytes.\"\"\"\n    signature = bytes([0x41, 0x54, 0x26, 0x54, 0x46, 0x4F, 0x52, 0x4D])\n    with open(file_path, \"rb\") as f:\n        return f.read(8) == signature","node":"function isDJV(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x41, 0x54, 0x26, 0x54, 0x46, 0x4F, 0x52, 0x4D]);\n  return buffer.subarray(0, 8).equals(signature);\n}","go":"func IsDJV(data []byte) bool {\n    signature := []byte{0x41, 0x54, 0x26, 0x54, 0x46, 0x4F, 0x52, 0x4D}\n    if len(data) < 8 {\n        return false\n    }\n    return bytes.Equal(data[:8], signature)\n}"},"category":"Documents"}}