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

Maruan Sahyoun commented on PDFBOX-4068:
----------------------------------------

[~tilman] in {{PDAbstractContentStream}} i'd like to get rid of all higher 
level stuff
Roughly (haven't looked at all the implications):
- there is only a constructor with an OutputStream
- no stacks -> should go to concrete classes
- no resources -> e.g. currently that is only to add the image to the resources 
when the image is draw -> should go to concrete classes
- no AppendMode -> that should go to PDPageContentStream
...

In addition we might consider to not extend {{PDAbstractContentStream}}  but is 
it as a member within the other classes (and rename it)

WDYT?



> Create ContentStream for XObject forms
> --------------------------------------
>
>                 Key: PDFBOX-4068
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4068
>             Project: PDFBox
>          Issue Type: Task
>          Components: PDModel
>            Reporter: Tilman Hausherr
>            Priority: Major
>
> We have a {{PDAppearanceContentStream}} for appearances but nothing for 
> XObject forms.
> What we need should extend {{PDAbstractContentStream}} and should have a 
> constructor like
> {code:java}
> public PDFormContentStream(PDFormXObject form) throws IOException
> {code}
> Alternatively, why not replace {{PDAppearanceContentStream}} ? Its parameter 
> {{PDAppearanceStream}} is extended from {{PDFormXObject}} so we could just 
> use the base class.
> We need this both for 2.0 and 3.* - we have users who have a really hard time 
> fiddling with low level operators instead of using the methods.
> In 2.0 we could replace the parameter of {{PDPageContentStream}} that is 
> currently {{PDAppearanceStream}}. This would be a non breaking change.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

Reply via email to