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 Am Freitag, dem 03.02.2023 um 17:01 +0200 schrieb Jurgen Doll: > Hi > > So I think that this behavior has something to do with a field having > a problematic appearance /AP entry. > > I thought maybe that if the field's /AP entry is bad that maybe its > default appearance /DA would be used. > So I tried setting the field's /DA to the form's /DA value with: > > var da = pdForm.getDefaultAppearance(); > textfld.setDefaultAppearance( da ); > > but this unfortunately didn't cause the field value to be rendered > either. > > Can someone give me insight as to how PDFBox handles this and where > in the PDFBox code base I can look for this ? > Or is there another way to handle this ? > > Thanks, regards > Jurgen > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org For additional commands, e-mail: users-h...@pdfbox.apache.org