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

Manfred Pock commented on PDFBOX-2692:
--------------------------------------

Hello John, Tilman and Maruan,

Thanks for your answer and I unterstand your view.

Our annotation are should be viewed on the top of the Pdf and should also be 
visible in external viewer like Acrobat Reader.

We have to paint them at our own because we will edit it like in an 
wysiwg-editor. Move and drag with the mouse, resize, show selection of the 
current annotation, change text and so one (see attached image), I think this 
all will not work direct in the pdfbox. 
Current we render the pdf to an bufferedimage and view this image (which are 
the general as i know). On the top of this image we show our annotations. If we 
use the Pdfbox to render our annotations we always have to rerender the whole 
page if we change any annotation. As I know the perfomance of pdfbox at 
rendering, this would never work in an usable user experience. (Just the 
rendering direct in pdfbox of this annotations does also not work very fine, as 
I remember, it's a few week ago as i have tried this).

About the OCR text, it's not direct a problem, it's rendering mode is NEITHER 
and the are not shown. We just want to filter this off performance issues. (In 
general we have some perfomance problem with the rendering. do you have a any 
tip what we can to for a better rendering performance.)

Maybe will be a kind of filter or an annotationhandler as maruan means a 
solution.





> Possibility to use our own and/or overwrite PageDrawer class
> ------------------------------------------------------------
>
>                 Key: PDFBOX-2692
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2692
>             Project: PDFBox
>          Issue Type: Wish
>          Components: Rendering
>    Affects Versions: 2.0.0
>         Environment: JDK 1.8, Windows 7, PDF-Box - current trunk
>            Reporter: Manfred Pock
>              Labels: features
>
> We use PDFBox to render PDF's. Additionally, we have the posibility to add 
> different kinds of annotation (stamp, marks, free text, notes..) like in a 
> wysiwyg-editor. To do this, it is necessary that we paint these annotations 
> on our own.
> Another reason is not to paint all parts: for example we have a pdf with an 
> embedded picture. Behind the picture we have the OCR-text to this picture. 
> This text is only needed for searching und should not be painted.
> Thus it would be useful to use our own derived PageDrawer. As I see there are 
> some things to change.
> a.) remove the final from PagerDrawer-class.
> b.) make some global-variables (graphics, xform, pageSize...) protected,
> c.) also some methods like setRenderingHints should be protected
> d.) maybe the possibility to say to the PDFRender which PageDrawer should be 
> used.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to