PDFBox users: I have a simple PDF that contains some text, and an 'annotation' highlight covering the text. Using PDFBox 3.0.2, when I render it to a raster format, the 'annotation' is transparent and the text behind it shows up.
However, when I render it to SVG (using batik svggen.SVGGraphics2D), the highlight is opaque. I've put the sample PDF and the generated SVG in a public folder as follows: PDF: s3://webdl.equorum.com/misc/I20250156.pdf SVG original: s3://webdl.equorum.com/misc/I20250156.svg SVG opacity: s3://webdl.equorum.com/misc/I20250156-opacity.svg The highlight is rendered as a 'g' object in the SVG near the end of the file, with a 'fill:rgb(255,255,49)'. If I add a 'opacity:0.4;' attribute to that object, then the contained text appears properly. The I20250156-opacity.svg has been modified to add the opacity attribute. I guess what I need to find is what rendering call from PDFBox is being made to render the 'annotation' highlight. I've already sub-classed the SVGGraphics2D class to handle some other image related issues, so hopefully I can find the corresponding calls to handle this as well? Thanks for your assistance, Rich Stafford Chief Scientist eQuorum Corporation