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).
This class provides 5 methods for working with XRefParser objects in Java programs.
Available methods include: XRefParser, findStartxref, getEntries, getTrailerDictionary, parse.
All public members are accessible to any Java application after installing the Aspose.PDF FOSS for Java package.
Properties: entries, trailerDictionary.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
entries | Map<PdfObjectKey, XRefEntry> | Read | Returns all cross-reference entries parsed so far. |
trailerDictionary | PdfDictionary | 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<PdfObjectKey, XRefEntry> | Returns all cross-reference entries parsed so far. |
getTrailerDictionary() → PdfDictionary | Returns the trailer dictionary. |
findStartxref(reader: RandomAccessReader) → long | Finds the startxref position by searching backward from the end of the file. |