THotPDF.GetLoadedAnnotationModDate Method
Gets the last modification date string of the specified annotation in the loaded PDF document
Declaration
function GetLoadedAnnotationModDate(PageIndex, AnnotationIndex: Integer): AnsiString;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
PageIndex | Zero-based index of the target page |
AnnotationIndex | Zero-based index of the annotation on the target page |
Return value
Returns a modification date string that conforms to the PDF date format (D:YYYYMMDDHHmmSSOHH'mm); returns an empty string if the annotation has no modification date
Usage notes
- 调用前须确保文档已成功加载,且指定页面和注释索引均在有效范围内
- The returned date string follows the PDF specification date format and needs to be parsed manually into TDateTime or another date type
- If the annotation dictionary does not contain an M key, an empty string is returned; the caller should prepare for null value checks