{
  "name": "scorpiox-pdfsanitize",
  "version": "1.0.3",
  "exports": [
    {
      "name": "pdfsanitize_init",
      "return": "int",
      "csharp_return": "int",
      "args": [],
      "note": "Returns 1 on success, 0 on failure."
    },
    {
      "name": "pdfsanitize_cleanup",
      "return": "void",
      "csharp_return": "void",
      "args": [],
      "note": "Cleans up resources and clears error buffer."
    },
    {
      "name": "pdfsanitize_full",
      "return": "int",
      "csharp_return": "int",
      "args": [
        {
          "name": "input_path",
          "type": "const char*",
          "csharp_type": "string",
          "marshal": "UnmanagedType.LPUTF8Str"
        },
        {
          "name": "output_path",
          "type": "const char*",
          "csharp_type": "string",
          "marshal": "UnmanagedType.LPUTF8Str"
        }
      ],
      "note": "Full sanitize — remove JS, embedded files, auto-actions, forms. Returns 1 on success, 0 on failure."
    },
    {
      "name": "pdfsanitize_remove_js",
      "return": "int",
      "csharp_return": "int",
      "args": [
        {
          "name": "input_path",
          "type": "const char*",
          "csharp_type": "string",
          "marshal": "UnmanagedType.LPUTF8Str"
        },
        {
          "name": "output_path",
          "type": "const char*",
          "csharp_type": "string",
          "marshal": "UnmanagedType.LPUTF8Str"
        }
      ],
      "note": "Remove only JavaScript actions and name-tree scripts. Returns 1 on success, 0 on failure."
    },
    {
      "name": "pdfsanitize_remove_attachments",
      "return": "int",
      "csharp_return": "int",
      "args": [
        {
          "name": "input_path",
          "type": "const char*",
          "csharp_type": "string",
          "marshal": "UnmanagedType.LPUTF8Str"
        },
        {
          "name": "output_path",
          "type": "const char*",
          "csharp_type": "string",
          "marshal": "UnmanagedType.LPUTF8Str"
        }
      ],
      "note": "Remove embedded files and attachments. Returns 1 on success, 0 on failure."
    },
    {
      "name": "pdfsanitize_remove_actions",
      "return": "int",
      "csharp_return": "int",
      "args": [
        {
          "name": "input_path",
          "type": "const char*",
          "csharp_type": "string",
          "marshal": "UnmanagedType.LPUTF8Str"
        },
        {
          "name": "output_path",
          "type": "const char*",
          "csharp_type": "string",
          "marshal": "UnmanagedType.LPUTF8Str"
        }
      ],
      "note": "Remove auto-open actions (OpenAction, AA). Returns 1 on success, 0 on failure."
    },
    {
      "name": "pdfsanitize_scan",
      "return": "const char*",
      "csharp_return": "IntPtr",
      "args": [
        {
          "name": "input_path",
          "type": "const char*",
          "csharp_type": "string",
          "marshal": "UnmanagedType.LPUTF8Str"
        }
      ],
      "note": "Scan and report threats as JSON string without modifying. Valid until next call. Marshal as IntPtr + PtrToStringAnsi."
    },
    {
      "name": "pdfsanitize_last_error",
      "return": "const char*",
      "csharp_return": "IntPtr",
      "args": [],
      "note": "Returns static error message buffer. Valid until next call. Marshal as IntPtr + PtrToStringAnsi on C# Linux."
    }
  ]
}
