XRefParser
Overview
XRefParser is a class in Aspose.Pdf FOSS for Java.
Parser for PDF cross-reference tables and streams as defined in ISO 32000-1:2008, §7.5.4 (text xref tables) and §7.5.8 (xref streams).
Properties
| Name | Type | Access | Description |
|---|---|---|---|
entries | Map<COSObjectKey, XRefEntry> | Read | Returns all cross-reference entries parsed so far. |
trailerDictionary | COSDictionary | Read | Returns the trailer dictionary. |
Methods
| Signature | Description |
|---|---|
XRefParser(reader: RandomAccessReader, lexer: PDFLexer) | Constructs an XRefParser. |
parse(startxrefPosition: long) | Parses the cross-reference starting at the given startxref position. |
getEntries() → Map<COSObjectKey, XRefEntry> | Returns all cross-reference entries parsed so far. |
getTrailerDictionary() → COSDictionary | Returns the trailer dictionary. |
findStartxref(reader: RandomAccessReader) → long | Finds the startxref position by searching backward from the end of the file. |