You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Alistair Oldfield (Jira)" <ji...@apache.org> on 2021/08/28 13:39:00 UTC

[jira] [Created] (PDFBOX-5270) Consider BaseParser.seqSource a protected member

Alistair Oldfield created PDFBOX-5270:
-----------------------------------------

             Summary: Consider BaseParser.seqSource a protected member
                 Key: PDFBOX-5270
                 URL: https://issues.apache.org/jira/browse/PDFBOX-5270
             Project: PDFBox
          Issue Type: Improvement
          Components: Text extraction
    Affects Versions: 2.0.24
            Reporter: Alistair Oldfield


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

 
{code:java}
protected final SequentialSource seqSource;
 
{code}

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:
{code:java}
%comment in stream which may be useful to read{code}
 

One cannot usefully override 

 
{code:java}
protected void skipSpaces() throws IOException
 
{code}
 

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).

 

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org