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

John Hewson commented on PDFBOX-2838:
-------------------------------------

Subclassing isn't a general-purpose extensibility mechanism. Exposing these 
kinds of APIs to downstream clients comes with hefty drawbacks in terms of 
flexibility for future PDFBox development.

It sounds like what you really want is some sort of caching in 
PDPageContentStream, but I don't know what you mean by "cache the last set 
data".

> 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
>             Fix For: 2.0.0
>
>
> 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
(v6.3.4#6332)

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

Reply via email to