[ 
https://issues.apache.org/jira/browse/PDFBOX-2838?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18072372#comment-18072372
 ] 

Stefan Ziegler commented on PDFBOX-2838:
----------------------------------------

I would also need a non-Final PDPageContentStream. My file transformer class 
uses PDPageContentStream.appendRawCommands for some font related 
transformations because showText(String text) can not be be used here. 
appendRawCommands  methods are marked as @deprecated. So, we either need the 
appendRawCommands methods or we need a non-final PDPageContentStream so that we 
can extend PDPageContentStream.

PDAbstractContentStream is package private, so can you make it public then?

> Please make PDPageContentStream non-final
> -----------------------------------------
>
>                 Key: PDFBOX-2838
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2838
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: PDModel
>    Affects Versions: 2.0.0
>            Reporter: Philip Helger
>            Assignee: John Hewson
>            Priority: Major
>             Fix For: 2.0.0
>
>         Attachments: PDPageContentStreamWithCache.java
>
>
> Please make PDPageContentStream non-final as in certain cases it might be 
> helpful to cache the last set data on an PDPageContentStream (such as the 
> last used Font) to avoid bloating the created PDF. Therefore the methods must 
> be overridable.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to