It's already set by the pdf file

PDTextbox an1 = ...
System.out.println(an1.shouldComb()); // outputs true
System.out.println(an1.getMaxLen()); // outputs 9

And it renders the pdf like this:


If I edit the field with evince (https://wiki.gnome.org/Apps/Evince) it
renders it like this (the desired effect)

​
Any clues?



On Wed, May 28, 2014 at 10:35 AM, Gilad Denneboom <[email protected]
> wrote:

> Did you also set the max length property?
>
>
> On Wed, May 28, 2014 at 2:05 PM, Andres Martinez Quijano <
> [email protected]
> > wrote:
>
> > Hi
> >
> > I have a PDF (which was created with Adobe LiveCycle Designer ES 9.0)
> and I
> > use pdfbox to fill it's forms.
> >
> > I have some particular fields which have combing enabled (i.e.
> > field.shouldComb() == true), but when rendering the PDF with the value,
> it
> > doesn't comb like it should. I saw that the shouldComb() method isn't
> being
> > called anywhere.
> >
> > Am I missing something to be able to render the PDF with combing for
> those
> > fields or it isn't implemented yet? In the latter case, any pointings on
> > how to implement it myself?
> >
> > Thanks
> >
>

Reply via email to