Hello Jens,
This can be done by modifying PageDrawer.java or make your own. Override
PageDrawer.processPage() to do nothing (see the source code of
PageDrawer.drawPage() to see why). Read the class javadoc of PageDrawer
because of the difficulties to subclass it.
Tilman
Am 01.11.2019 um 11:28 schrieb Jens Bruhn-Hansel:
Hi,
we are using PDFBox to add/modify annotations of a PDF file with
showing a preview to the user. This works well: let PDFBox rendering
the PDF (with annotations included), showing the image to the user.
But when using complex and big PDF files, it may take some seconds to
render the complete page. That's not bad, when only doing this once.
But we want to update the preview after every annotation change.
So the idea is: let PDFBox render the PDF without the annotations
once. Caching the resulting image (base). Now it would be great, to
let PDFBox render only the annotations after every change. So the
preview would be much faster: painting the cached (base) image and
painting the annotation-image. Is this possible?
Thanks a lot,
jens
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org