{
  "name": "scorpiox-pdfstamp",
  "version": "1.0.0",
  "exports": [
    {
      "name": "pdfstamp_init",
      "return": "int",
      "csharp_return": "int",
      "args": [],
      "note": "Returns 1 on success, 0 on failure."
    },
    {
      "name": "pdfstamp_cleanup",
      "return": "void",
      "csharp_return": "void",
      "args": [],
      "note": "Cleans up resources and clears error buffer."
    },
    {
      "name": "pdfstamp_text",
      "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": "text",
          "type": "const char*",
          "csharp_type": "string",
          "marshal": "UnmanagedType.LPUTF8Str"
        },
        {
          "name": "x",
          "type": "float",
          "csharp_type": "float"
        },
        {
          "name": "y",
          "type": "float",
          "csharp_type": "float"
        },
        {
          "name": "font_size",
          "type": "int",
          "csharp_type": "int"
        },
        {
          "name": "opacity",
          "type": "float",
          "csharp_type": "float"
        },
        {
          "name": "rotation",
          "type": "float",
          "csharp_type": "float"
        },
        {
          "name": "r",
          "type": "int",
          "csharp_type": "int"
        },
        {
          "name": "g",
          "type": "int",
          "csharp_type": "int"
        },
        {
          "name": "b",
          "type": "int",
          "csharp_type": "int"
        }
      ],
      "note": "Add text stamp at x,y position (points from bottom-left) to all pages."
    },
    {
      "name": "pdfstamp_text_pages",
      "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": "text",
          "type": "const char*",
          "csharp_type": "string",
          "marshal": "UnmanagedType.LPUTF8Str"
        },
        {
          "name": "x",
          "type": "float",
          "csharp_type": "float"
        },
        {
          "name": "y",
          "type": "float",
          "csharp_type": "float"
        },
        {
          "name": "font_size",
          "type": "int",
          "csharp_type": "int"
        },
        {
          "name": "opacity",
          "type": "float",
          "csharp_type": "float"
        },
        {
          "name": "pages",
          "type": "const int*",
          "csharp_type": "int[]",
          "marshal": "UnmanagedType.LPArray"
        },
        {
          "name": "page_count",
          "type": "int",
          "csharp_type": "int"
        }
      ],
      "note": "Stamp text on specific pages only (1-based array)."
    },
    {
      "name": "pdfstamp_image",
      "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": "image_path",
          "type": "const char*",
          "csharp_type": "string",
          "marshal": "UnmanagedType.LPUTF8Str"
        },
        {
          "name": "x",
          "type": "float",
          "csharp_type": "float"
        },
        {
          "name": "y",
          "type": "float",
          "csharp_type": "float"
        },
        {
          "name": "scale",
          "type": "float",
          "csharp_type": "float"
        },
        {
          "name": "opacity",
          "type": "float",
          "csharp_type": "float"
        }
      ],
      "note": "Add image stamp at x,y to all pages."
    },
    {
      "name": "pdfstamp_datetime",
      "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": "format",
          "type": "const char*",
          "csharp_type": "string",
          "marshal": "UnmanagedType.LPUTF8Str"
        },
        {
          "name": "x",
          "type": "float",
          "csharp_type": "float"
        },
        {
          "name": "y",
          "type": "float",
          "csharp_type": "float"
        },
        {
          "name": "font_size",
          "type": "int",
          "csharp_type": "int"
        }
      ],
      "note": "Add date/time stamp (auto-formatted current date) to all pages."
    },
    {
      "name": "pdfstamp_last_error",
      "return": "const char*",
      "csharp_return": "IntPtr",
      "args": [],
      "note": "Returns static buffer with last error description, valid until next call."
    }
  ]
}
