You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (Jira)" <ji...@apache.org> on 2022/06/09 06:21:00 UTC

[jira] [Commented] (PDFBOX-5454) Add a setter for `PageDrawer.graphics` member variable

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

Tilman Hausherr commented on PDFBOX-5454:
-----------------------------------------

We added {{showTransparencyGroupOnGraphics}} for you and now 7 months later, it turns out not to be what you needed?

> Add a setter for `PageDrawer.graphics` member variable
> ------------------------------------------------------
>
>                 Key: PDFBOX-5454
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-5454
>             Project: PDFBox
>          Issue Type: New Feature
>          Components: Rendering
>    Affects Versions: 2.0.26
>            Reporter: Henry Iguaro
>            Priority: Trivial
>
> Hey folks! The following is a request to add a `protected` setter in `PageDrawer` for the `graphics` member variable.
> The idea behind this change is to be able to draw the entirety of a `TransparencyGroup` onto a separate image. We already tried using `showTransparencyGroupOnGraphics()` but this doesn't work well with deeply nested complex transparency groups (there are some areas that are drawn incorrectly, are missed or misaligned).
> We set up a proof of concept that sets the parent graphics to the target image through reflection and it worked.
> After the proof of concept we wondered if this could be included as a feature to avoid any usage of reflection.
>  
> We created a PR for this here: [https://github.com/apache/pdfbox/pull/144]
>  
> Thank you in advance guys.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

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