Re: Fetch the background color for text in PDF

2023-12-05 Thread Tilman Hausherr
There is no such a thing as "the background color". The background is whatever you have at the area when you're putting out the glyphs. It can be several colors if you're overwriting an image. Tilman On 06.12.2023 03:23, Jeffrey Matthew wrote: Hey Team, I'm new to pdfbox and working on

Fetch the background color for text in PDF

2023-12-05 Thread Jeffrey Matthew
Hey Team, I'm new to pdfbox and working on it right now. I wanted to know if we have sample code to fetch the background color for a text with pdfBox.? The example provided in :

Re: Font operation takes a long time with 3.0.1

2023-12-05 Thread Kjetil Ødegaard
Tested the new snapshot. Performance looks good. Cache file excerpt: ➜ ~ grep -i NotoSansKannada .pdfbox.cache *skipexception*|TTF||0|0|0|0|0||/System/Library/Fonts/NotoSansKannada.ttc|b930924c|1700331239000 BR Kjetil tir. 5. des. 2023 kl. 15:10 skrev Tilman Hausherr : > Thanks for the

Re: Font operation takes a long time with 3.0.1

2023-12-05 Thread Tilman Hausherr
Thanks for the feedback. It turns out that there's another error (checksum was empty because MessageDigest doesn't support CRC32), which has been fixed now, please test again (delete the file first). The second-to-last field should now not be empty. It also teaches an important lesson: a "//

Re: Font operation takes a long time with 3.0.1

2023-12-05 Thread Kjetil Ødegaard
Nice! Tested it now and I can confirm that it fixes the issue. I see good performance even from the first operation. Checked the cache file and there is a line for this font there now: ➜ ~ grep -i NotoSansKannada .pdfbox.cache

Re: Font operation takes a long time with 3.0.1

2023-12-05 Thread Tilman Hausherr
Thanks, new snapshot build here: https://repository.apache.org/content/groups/snapshots/org/apache/pdfbox/pdfbox-app/3.0.2-SNAPSHOT/ Ticket: https://issues.apache.org/jira/browse/PDFBOX-5727 Tilman On 05.12.2023 08:41, Kjetil Ødegaard wrote: To clarify, this stack trace is not printed