GetAnnotCreationDate
Annotations and hotspot links
Description
Returns the creation date held in the /CreationDate entry of an annotation on the selected page
The value comes back verbatim as a PDF date string, for example D:20260101120000+01'00'; /CreationDate is an optional entry carried by markup annotations, so other annotation types usually give an empty string
Syntax
Delphi
Function TPDFlib.GetAnnotCreationDate(Index: Integer): WideString;
Parameters
| Index | 1-based annotation index on the selected page |
|---|
Return values
| text | The raw /CreationDate PDF date string |
|---|---|
| '' | The annotation has no /CreationDate entry, the index is invalid, or no document is loaded |