THotPDF.GetLoadedXRefType Method
Returns the cross-reference table type string of the loaded PDF document, indicating whether it uses a traditional XRef table or an XRef stream
Declaration
function GetLoadedXRefType: AnsiString;
Unit
HPDFDoc
Return value
Returns 'Table' (traditional cross-reference table) or 'Stream' (cross-reference stream for PDF 1.5 and above); returns an empty string if unable to determine
Usage notes
- XRef 流格式(Stream)为 PDF 1.5 引入,可包含压缩对象;若结果为 'Table',则文档兼容 PDF 1.4 及更早阅读器
- This information is used for diagnostic and compatibility analysis and does not affect the parsing process of HotPDF
- Ensure the document has been successfully loaded before calling, otherwise returns an empty string