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

NameTypeAccessDescription
entriesMap<PdfObjectKey, XRefEntry>ReadReturns all cross-reference entries parsed so far.
trailerDictionaryPdfDictionaryReadReturns 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<PdfObjectKey, XRefEntry>Returns all cross-reference entries parsed so far.
getTrailerDictionary()PdfDictionaryReturns the trailer dictionary.
findStartxref(reader: RandomAccessReader)longFinds the startxref position by searching backward from the end of the file.

See Also

 English