Is the image already compressed, e.g. PNG, JPEG and b/w TIFF? Then use
the image directly because PDFBox can use these formats without doing a
compression, if you use the static methods from PDImageXObject.
Or is the image in memory, or from a different format (e.g. color CCITT,
GIF)? Then you'd save the compression time by creating a PDF that has
the image in compressed form.
Tilman
On 19.03.2024 15:46, Nicola Farina wrote:
Hi
I am using PDFBOX 2.0.30.
I need to build a sort of "filled" pdf starting from a template.
At the moment I've chosen to start with a "background" PDF and then
use PDFBOX to write on it
(see the attached examples).
The empty template pdf is basically a background image imported into a PDF.
I now wonder if it could be more efficient to start creating a new,
empty, PDF and then importing the image into it, and then write text
above all.
This application should be as fast as possible.
thanks for any tips/ideas
Nicola
---------------------------------------------------------------------
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