Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-5270

Consider BaseParser.seqSource a protected member

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0.24
    • 3.0.0 PDFBox
    • Text extraction
    • None

    Description

      Please consider making
      org.apache.pdfbox.pdfparser.BaseParser.seqSource a protected member.
      i.e.

       

      protected final SequentialSource seqSource;
       
      

      this will allow extending the PDFStreamParser class to make use of the seqSource.

       

      In my particular case (only to show one of many possible use-cases), I do not want to skip comments in the PDF stream:

      %comment in stream which may be useful to read

       

      One cannot usefully override 

       

      protected void skipSpaces() throws IOException
       
      

       

      without access to this member.

       

      As the skipSpaces is already protected, it implies that one may find it useful to override it anyway (probably other reasons too, but is not really meaningful without access to seqSource).

       

       

      Attachments

        Activity

          People

            lehmi Andreas Lehmkühler
            alistairo Alistair Oldfield
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: