Hi,
The PDF didn't get through. Please upload it to a sharehoster. Normally
we would also need some code, but I have some that I can use.
However I think I've seen this complaint before. The drawing is done in
PageDrawer.drawBufferedImage(). The opacity is done in
graphics.setComposite(....);
Tilman
On 15.01.2025 20:24, Rich Stafford wrote:
PDFBox:
We are using PDFBox (3.0.3) and Batik (1.18) to render PDF files to
SVG, with great success. However, we have found that a text
'highlight' is rendered as stroked text, and an image overlay. Which
is fine, except the <img> element for the highlight is defined without
a transparency attribute, and thus obscures the underlying text.
I've attached a simple PDF test case, along with the rendered SVG
result. If I add opacity="0.40" to the <img> element, it will display
properly.
If we render this same PDF to JPG, the result is correct, with the
text showing on top of the highlight, so it would appear that the
render code does know that the image should be non-opaque?
Any suggestions as to how to handle this? What PDFBox call is
handling the image rendering? I've already derived a sub-class from
the SVGGraphics2d object to handle other issues?
Rich Stafford
Chief Scientist
eQuorum Corporation
---------------------------------------------------------------------
To unsubscribe, e-mail:users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail:users-h...@pdfbox.apache.org