{"success":true,"data":{"ext":"epsf","name":"EPSF","description":"Encapsulated PostScript File (EPSF) is a legacy PostScript-based graphics format created by Adobe Systems and defined as part of the PostScript ecosystem. It is used for placing vector illustrations, logos, and page elements in desktop publishing, illustration, and print-production workflows. Because it can contain embedded PostScript code, files from untrusted sources should be handled carefully, although the format is generally considered safe when viewed with compatible software.","mime":["application/postscript"],"risk_level":"Safe","signatures":[{"hex":"25 21 50 53 2D 41 64 6F 62 65 2D 33 2E 30 20 45 50 53 46 2D 33 2E 30","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":"25 21","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":"04 25 21","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":"C5 D0 D3 C6","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":"25 21 50 53 2D 41 64 6F 62 65 2D 33 2E 31 20 45 50 53 46 2D 33 2E 30","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]}],"related":["ai","eps","cdr","vsd","vsdx","cgm"],"usage":{"python":"def is_epsf(file_path: str) -> bool:\n    \"\"\"Check if file is a valid EPSF by magic bytes.\"\"\"\n    signature = bytes([0x25, 0x21, 0x50, 0x53, 0x2D, 0x41, 0x64, 0x6F, 0x62, 0x65, 0x2D, 0x33, 0x2E, 0x30, 0x20, 0x45, 0x50, 0x53, 0x46, 0x2D, 0x33, 0x2E, 0x30])\n    with open(file_path, \"rb\") as f:\n        return f.read(23) == signature","node":"function isEPSF(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x25, 0x21, 0x50, 0x53, 0x2D, 0x41, 0x64, 0x6F, 0x62, 0x65, 0x2D, 0x33, 0x2E, 0x30, 0x20, 0x45, 0x50, 0x53, 0x46, 0x2D, 0x33, 0x2E, 0x30]);\n  return buffer.subarray(0, 23).equals(signature);\n}","go":"func IsEPSF(data []byte) bool {\n    signature := []byte{0x25, 0x21, 0x50, 0x53, 0x2D, 0x41, 0x64, 0x6F, 0x62, 0x65, 0x2D, 0x33, 0x2E, 0x30, 0x20, 0x45, 0x50, 0x53, 0x46, 0x2D, 0x33, 0x2E, 0x30}\n    if len(data) < 23 {\n        return false\n    }\n    return bytes.Equal(data[:23], signature)\n}"},"category":"Images"}}