Class PDFXrefStreamParser


  • public class PDFXrefStreamParser
    extends BaseParser
    This will parse a PDF 1.5 (or better) Xref stream and extract the xref information from the stream.
    Version:
    $Revision: 1.0 $
    Author:
    Justin LeFebvre
    • Constructor Detail

      • PDFXrefStreamParser

        public PDFXrefStreamParser​(COSStream strm,
                                   COSDocument doc,
                                   boolean forceParsing,
                                   XrefTrailerResolver resolver)
                            throws java.io.IOException
        Constructor.
        Parameters:
        strm - The stream to parse.
        doc - The document for the current parsing.
        forceParsing - flag to skip malformed or otherwise unparseable input where possible
        resolver - resolver to read the xref/trailer information
        Throws:
        java.io.IOException - If there is an error initializing the stream.
        Since:
        1.3.0
    • Method Detail

      • parse

        public void parse()
                   throws java.io.IOException
        Parses through the unfiltered stream and populates the xrefTable HashMap.
        Throws:
        java.io.IOException - If there is an error while parsing the stream.