[
https://issues.apache.org/jira/browse/PDFBOX-2692?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14338412#comment-14338412
]
Maruan Sahyoun commented on PDFBOX-2692:
----------------------------------------
{quote}
Our annotation are should be viewed on the top of the Pdf and should also be
visible in external viewer like Acrobat Reader.
{quote}
that means that, after having created, edited, moved ... the annotations, you
should store them in the PDF as to allow them to be displayed in Adobe Reader
standalone.
{quote}
we always have to rerender the whole page if we change any annotation
{quote}
If the page didn't change why do you have to recreate the BufferedImage? If the
annotation is on top of the BufferedImage and the PDF content didn't change
there is no need to rerender the PDF.
{quote}
it's rendering mode is NEITHER and they are not shown
{quote}
there is a performance hit associated with looking at the OCR text and deciding
that it needn't be rendered. Obviously there might be a lot of OCR text objects
which need to be inspected. But before inspecting these it would be unknown if
they have to be rendered.
[~jahewson] [~tilman] might be something we can add to the PageDrawer - e.g.
don't render text, don't render images, don't render annotations ... (although
people might be getting a lot of interesting ideas like don't render blue text
... :-) )
Now if your PDF contains only full page sized images instead of rendering you
could do image extraction and render the extracted image (wouldn't suggest to
go that way as the is very specific but added it for completeness)
> 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
> Attachments: pdfexample.jpg
>
>
> 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: [email protected]
For additional commands, e-mail: [email protected]