{
  "name": "scorpiox-pdfremoveblanks",
  "version": "1.0.4",
  "exports": [
    {
      "name": "pdfremoveblanks_init",
      "return": "int",
      "csharp_return": "int",
      "args": [],
      "note": "Returns 1."
    },
    {
      "name": "pdfremoveblanks_cleanup",
      "return": "void",
      "csharp_return": "void",
      "args": [],
      "note": "Clears the error buffer."
    },
    {
      "name": "pdfremoveblanks_remove",
      "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"
        },
        {
          "name": "threshold",
          "type": "int",
          "csharp_type": "int",
          "note": "0-100, min white-pixel % to count blank (default 99 when <=0)."
        }
      ],
      "note": "Returns 1 on success / 0 on failure."
    },
    {
      "name": "pdfremoveblanks_detect",
      "return": "const char*",
      "csharp_return": "IntPtr",
      "args": [
        {
          "name": "input_path",
          "type": "const char*",
          "csharp_type": "string",
          "marshal": "UnmanagedType.LPUTF8Str"
        },
        {
          "name": "threshold",
          "type": "int",
          "csharp_type": "int",
          "note": "0-100 (default 99 when <=0)."
        }
      ],
      "note": "JSON array of 1-based blank page numbers: [2,5,8]. Marshal as IntPtr + PtrToStringAnsi (NOT string — Linux .NET 9 aborts). NULL on failure."
    },
    {
      "name": "pdfremoveblanks_stats",
      "return": "const char*",
      "csharp_return": "IntPtr",
      "args": [],
      "note": "JSON {\"before\":10,\"after\":8,\"removed\":[2,5]} from the last successful remove/detect. Marshal as IntPtr + PtrToStringAnsi. NULL when no op has run."
    },
    {
      "name": "pdfremoveblanks_last_error",
      "return": "const char*",
      "csharp_return": "IntPtr",
      "args": [],
      "note": "Empty string when no error. Marshal as IntPtr + PtrToStringAnsi."
    }
  ]
}
