pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gilad Denneboom <gilad.denneb...@gmail.com>
Subject Re: PDFBox form fields help
Date Sun, 12 Jun 2011 20:05:05 GMT
Hi Thomas,

Thanks for looking into it. I've tried it, but the result seems pretty
similar.
I'm attaching the new file created after adding the line you suggested.

Gilad

On Sun, Jun 12, 2011 at 7:54 PM, Thomas Chojecki <info@rayman2200.de> wrote:

> Hi Gilad,
>
> so I've took a look at the file, checked the adobe specification and
> checked the PDTextField code.
>
> Every field need a FieldType (FT). In the signature example I set it to
> Sig. For a TextField you should set Tx. Normaly the PDTextbox class should
> set it for you, but i doesn't. Can you try to set the FieldType manual?
>
> COSDictionary textFieldDict = textfield.getDictionary();
> textFieldDict.setName(COSName.FT, "Tx");
>
> Hope this helps.
>
> You can also try to show inside the specification [1] chapter: 12.7.3.1 for
> the general field dictionary and chapter 12.7.4.3 for the TextFields
> specification.
>
> Best regards
> Thomas
>
> [1]
> www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/PDF32000_2008.pdf
>

Mime
  • Unnamed multipart/mixed (inline, None, 0 bytes)
View raw message