BOOL32 __stdcall pdfLoadFDFDataA(PPDF IPDF, const char* FileName, const char* Password, uint32_t Flags);
BOOL32 __stdcall pdfLoadFDFDataW(PPDF IPDF, const wchar_t* FileName, const char* Password, uint32_t Flags);
BOOL32 __stdcall pdfLoadFDFDataEx(PPDF IPDF, void* Buffer, uint32_t BufSize, const char* Password, uint32_t Flags);
function pdfLoadFDFDataA(const IPDF: PPDF; const FileName: PAnsiChar; const Password: PAnsiChar; Flags: Cardinal): LongBool; stdcall;
function pdfLoadFDFDataW(const IPDF: PPDF; const FileName: PWideChar; const Password: PAnsiChar; Flags: Cardinal): LongBool; stdcall;
function pdfLoadFDFDataEx(const IPDF: PPDF; Buffer: Pointer; BufSize: Cardinal; const Password: PAnsiChar; Flags: Cardinal): LongBool; stdcall;
Purpose. Import form-field values from an external FDF (Forms Data Format) file/buffer, applying them to this document's matching fields.
Description. All three accept Password and Flags, but neither reaches ImportFDFData — an encrypted FDF (if such a thing is presented) cannot be decrypted through this call regardless of Password, and no Flags-driven behavior (e.g. selective field-name matching, or overwrite-vs-merge semantics) is reachable.
Parameters.
| Parameter | Description |
|---|---|
IPDF | Document handle. |
FileName / Buffer,BufSize | The FDF source. |
Password | Accepted but silently dropped. |
Flags | Accepted but silently dropped. |
Return value. True if the file/buffer parsed and field values were applied; False otherwise.
C# (P/Invoke)
[return: MarshalAs(UnmanagedType.Bool)]
Core
pdfLoadFDFDataEx
The …A form takes UTF-8, …W
takes UTF-16; a bare name aliases the ANSI form.
Worked examples — complete programs in ten languages.