Re: StringIndexOutOfBoundsException in AppearanceGeneratorHelper

2024-08-01 Thread Tilman Hausherr
Hi, First thanks for finding this. Ouch. Why not just "return;" ? I've approved your JIRA registration so if you want you can still create a ticket. Please do it quickly because we're close to a release for 3.0. Tilman On 01.08.2024 15:36, Nicola Costantini wrote: Hi all, in pdfbox versio

StringIndexOutOfBoundsException in AppearanceGeneratorHelper

2024-08-01 Thread Nicola Costantini
Hi all, in pdfbox version 2.0.32 was a bug fix for PDFBOX-5784 https://github.com/apache/pdfbox/commit/276f9ffba0427af9d2a6b13deaf642bab203b3e4 In AppearanceGeneratorHelper line 676 is assumed, that fields have non-empty values: font.getStringWidth(value.substring(0, 1)) resulting in this