GetAnnotCreationDate

Annotations and hotspot links

Description

Returns the creation date stored in the /CreationDate entry of an annotation on the selected page

The value is returned verbatim as a PDF date string, for example D:20260101120000+01'00'; /CreationDate is an optional entry that markup annotations carry, so other annotation types typically yield the empty string

Syntax

Delphi

Function TPDFlib.GetAnnotCreationDate(Index: Integer): WideString;

Parameters

Index1-based annotation index on the selected page

Return values

textThe raw /CreationDate PDF date string
''The annotation carries no /CreationDate entry, the index is invalid, or no document is loaded

See also

GetAnnotModifiedDate, GetAnnotContentsEx, GetAnnotTitle