{"success":true,"data":{"ext":"dvi","name":"DVI","description":"Device Independent (DVI) is a document output format created by Donald Knuth for the TeX typesetting system and maintained through the TeX community. It is used to represent typeset pages for previewing, printing, and conversion to other document formats, especially in academic and technical publishing workflows. DVI is a legacy format, and while it is generally safe, support depends on specialized viewers and drivers rather than modern general-purpose software.","mime":["application/x-dvi"],"risk_level":"Safe","signatures":[{"hex":"F7 02","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"}]},{"hex":"1B 20 54 65 58 20 6F 75 74 70 75 74 20","offset":14,"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":[],"usage":{"python":"def is_dvi(file_path: str) -> bool:\n    \"\"\"Check if file is a valid DVI by magic bytes.\"\"\"\n    signature = bytes([0xF7, 0x02])\n    with open(file_path, \"rb\") as f:\n        return f.read(2) == signature","node":"function isDVI(buffer: Buffer): boolean {\n  const signature = Buffer.from([0xF7, 0x02]);\n  return buffer.subarray(0, 2).equals(signature);\n}","go":"func IsDVI(data []byte) bool {\n    signature := []byte{0xF7, 0x02}\n    if len(data) < 2 {\n        return false\n    }\n    return bytes.Equal(data[:2], signature)\n}"}}}