THotPDF.GetLoadedModDate Method
Reads the recent modification date string from the information dictionary of the loaded PDF document
Declaration
function GetLoadedModDate: AnsiString;
Unit
HPDFDoc
Return value
返回符合 PDF 日期格式(D:YYYYMMDDHHmmSSOHH'mm')的 AnsiString 字符串;若文档不含修改日期则返回空字符串
Usage notes
- 修改日期反映文档最后一次被修改时的时间戳,对于追踪文档版本历史或审计合规场景很有价值
- Some PDF generators do not update the ModDate field on every save, so the return value may not accurately reflect the last operation time
- 日期字符串中包含时区偏移信息(如
+08'00'),解析时应一并处理以避免时区误差