pdfbox-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Klink (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (PDFBOX-4068) Create ContentStream for XObject forms and tiling patterns
Date Thu, 28 Jun 2018 14:42:00 GMT

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

Michael Klink edited comment on PDFBOX-4068 at 6/28/18 2:41 PM:
----------------------------------------------------------------

{quote}For what do you need the getOutputStream() method?{quote}

I merely wanted to know how to add custom content to the content streams. I am ok with either
of {{getOutputStream()}} and {{appendRawCommands()}} but it looked like both were on their
way out of PDFBox and I'd have to go the introspection and reflection way...

{quote}keep  them deprecated to discourage the usage.{quote}

In that case please replace the current deprecation text "This method will be removed in a
future release" to something not claiming removal to come.

Without the feedback here I'd have thought "Oh well, so there won't be an official way to
add custom content... Let's start doing it by introspection/reflection now. Otherwise I'll
have to add that in a hurry when the methods do get removed and any code using them stops
being compilable."


was (Author: mkl):
{quote}For what do you need the getOutputStream() method?{quote}

I merely wanted to know how to add custom content to the content streams. I am ok with either
of {{getOutputStream()}} and {{appendRawCommands()}} but it looked like both were on their
way out of PDFBox and I'd have to go the introspection and reflection way...

> Create ContentStream for XObject forms and tiling patterns
> ----------------------------------------------------------
>
>                 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
and tiling patterns.
> 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-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org


Mime
View raw message