pdfSetAnnotOrFieldDate
Set a date value on either an annotation or a form field
C
BOOL32 __stdcall pdfSetAnnotOrFieldDate(PPDF IPDF, uint32_t Handle, BOOL32 IsField, TDateType DateType, uint32_t DateTime);
Delphi
function pdfSetAnnotOrFieldDate(const IPDF: PPDF; Handle: Cardinal; IsField: LongBool; DateType: TDateType; DateTime: Cardinal): LongBool; stdcall;
Purpose. Set a date value on either an annotation or a form field (selected by IsField) — a shared entry point covering both object kinds since annotations and widget-type form fields share the same underlying PDF dictionary in this SDK's object model.
Parameters.
| Parameter | Description |
|---|---|
IPDF | Document handle. |
Handle | Document-wide annotation or field handle, per IsField. |
IsField | False = target an annotation; True = target a form field. |
DateType | Which date key to set (e.g. creation date, modification date). |
DateTime | The date value (encoding not independently re-verified in this chapter — likely a Unix-epoch-style integer given the Cardinal type). |
Return value. True if Handle resolves for the selected kind; False otherwise.
C# (P/Invoke)
wrappers/dotnet/LumasPdf.cs
[return: MarshalAs(UnmanagedType.Bool)]
Area
Annotations
Category
Annotations
Exported names
pdfSetAnnotOrFieldDate
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.