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

NameTypeAccessDescription
entriesMap<COSObjectKey, XRefEntry>ReadReturns all cross-reference entries parsed so far.
trailerDictionaryCOSDictionaryReadReturns the trailer dictionary.

Methods

SignatureDescription
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()COSDictionaryReturns the trailer dictionary.
findStartxref(reader: RandomAccessReader)longFinds the startxref position by searching backward from the end of the file.

See Also