Thanks a lot Maruan and Tilman!

A warning would be great, I've opened an RFE with PDFBOX-5565

Thanks again, regards
Jurgen

On Fri, 03 Feb 2023 19:08:10 +0200, sahy...@fileaffairs.de <sahy...@fileaffairs.de> wrote:

Hello Jurgen,

all fields in the sample form have the comb flag set. The first two
fields are correct but the third field is missing the field lenght i.e.
the number of characters for the comb field.

That's why there is no appearance being generated.

Either set the max number of charcters for the comb or remove the comb
property likes so

PDTextField field = (PDTextField)
form.getField("fullwidth_1_patiedetaiclone_surna-1");
field.setComb(false);

We could issue a warning in such cases or ignore the comb flag at all
in such cases - feel free to raise an enhancement request for that.

BR
Maruan

Reply via email to