{"success":true,"data":{"ext":"oxps","name":"Microsoft Open XML paper specification file","description":"Open XML Paper Specification (OXPS) is a page description and document package format developed by Microsoft and standardized by Ecma International and ISO/IEC. It is used for fixed-layout documents such as reports, forms, and print-ready files, and can be opened by Microsoft Windows, Microsoft Office, and compatible viewers. The format is generally considered safe, though, like other document containers, files from untrusted sources should still be handled with care.","mime":["application/oxps"],"risk_level":"Safe","signatures":[{"hex":"50 4B 03 04","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":["xps","epub","eps","mobi","pdf","ps"],"usage":{"python":"def is_oxps(file_path: str) -> bool:\n    \"\"\"Check if file is a valid OXPS 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 isOXPS(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x50, 0x4B, 0x03, 0x04]);\n  return buffer.subarray(0, 4).equals(signature);\n}","go":"func IsOXPS(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":"Documents"}}