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

Tilman Hausherr commented on PDFBOX-4068:
-----------------------------------------

OK, I'll go ahead for PDFormContentStream and you work with the rest... 
something isn't perfect right now but I can't really tell what.

Some thoughts:
- why is AppendMode in PDAppearanceContentStream?
- the max number of digits 4 is for appearance streams because Adobe does it. 
For ordinary user created form xobjects it isn't needed. But what if an 
appearance stream uses form xobjects?
- nonStrokingColorSpaceStack is both in PDAbstractContentStream and in 
PDPageContentStream
- a lean constructor with only outputStream sounds like a good idea, I'll start 
with that.

> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to