| Exported names | pdfCreateSubmitAction (bare = ANSI) |
|---|
Purpose — Create a form-submission action targeting a URL.
Description — Registers action kind 7 with the submit Flags in GotoPg and URL in Text.
Declarations
C
int32_t __stdcall pdfCreateSubmitAction(PPDF IPDF, int32_t Flags, const char* URL);
Delphi
function pdfCreateSubmitAction(const IPDF: PPDF; Flags: Integer; const URL: PAnsiChar): Integer; stdcall; external 'LumasPdf.dll';
Parameters
| Parameter | Type | Description |
|---|---|---|
IPDF | PPDF | Instance handle. |
Flags | Integer | PDF /Flags submit-action bitmask (per the PDF spec's SubmitForm flags, e.g. include/exclude fields, export format). |
URL | PAnsiChar | Submission target URL. |
Return value — 1-based action handle (> 0), or 0 on an invalid handle.
C# (P/Invoke)
wrappers/dotnet/LumasPdf.cs
public static extern int pdfCreateSubmitAction(IntPtr IPDF, int Flags, [MarshalAs(UnmanagedType.LPStr)] string URL);
Area
Core SDK
Category
Object Creation
Exported names
pdfCreateSubmitAction
String variants
The …A form takes UTF-8, …W
takes UTF-16; a bare name aliases the ANSI form.
See working code
Worked examples — complete programs in ten languages.