Re: Missing unicode information from a font.

2025-04-14 Thread NH Rao
Hello again, While I agree with your reasoning, I am not really sure if it applies in this case. From API consistency point of view, PDFont has a bunch of abstract methods defined. These are the only two methods which are declared as protected. It raises some questions for example why is getWidt

Re: Missing unicode information from a font.

2025-04-13 Thread Tilman Hausherr
Hi, We're usually reluctant to make stuff public, because this brings up new risks, more support requests and also prevents us to change that API. Tilman On 12.04.2025 02:52, NH Rao wrote: Greetings, Thank you for the reply. I managed to get it working using reflection. However I'm a bit wo

Re: Missing unicode information from a font.

2025-04-11 Thread NH Rao
Greetings, Thank you for the reply. I managed to get it working using reflection. However I'm a bit worried that I am accessing methods that are not part of the public API. Essentially my solution is to override the showGlyph method from PDFTextStripper, create a wrapper for the font and use the

Re: Missing unicode information from a font.

2025-04-11 Thread Tilman Hausherr
No there is no official solution to handle this. Here's what could be done (in addition to just fork the project, or use reflection) - do a setUnicode() on the TextPosition elements in the stripper - create the encoding and replace the fonts before extracting. For that you'd have to have to f