{"success":true,"data":{"ext":"fdf","name":"Adobe Portable Document Format","description":"Forms Data Format (FDF) is a file format developed by Adobe for exchanging form data, annotations, and related information with PDF documents. It is used primarily with PDF forms, document review workflows, and data submission in Adobe Acrobat and compatible applications. FDF files are generally low risk, but they may reference external content or contain scripted actions, so files from untrusted sources should be opened with standard caution.","mime":["application/vnd.fdf"],"risk_level":"Safe","signatures":[{"hex":"25 46 44 46 2D","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 50 44 46","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":["ai","pdf"],"usage":{"python":"def is_fdf(file_path: str) -> bool:\n    \"\"\"Check if file is a valid FDF by magic bytes.\"\"\"\n    signature = bytes([0x25, 0x46, 0x44, 0x46, 0x2D])\n    with open(file_path, \"rb\") as f:\n        return f.read(5) == signature","node":"function isFDF(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x25, 0x46, 0x44, 0x46, 0x2D]);\n  return buffer.subarray(0, 5).equals(signature);\n}","go":"func IsFDF(data []byte) bool {\n    signature := []byte{0x25, 0x46, 0x44, 0x46, 0x2D}\n    if len(data) < 5 {\n        return false\n    }\n    return bytes.Equal(data[:5], signature)\n}"}}}