pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Chojecki <i...@rayman2200.de>
Subject Re: PDFBox form fields help
Date Sun, 12 Jun 2011 17:54:07 GMT
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 

COSDictionary textFieldDict = textfield.getDictionary();
textFieldDict.setName(COSName.FT, "Tx");

Hope this helps.

You can also try to show inside the specification [1] chapter: 
for the general field dictionary and chapter for the TextFields 

Best regards

[1] www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/PDF32000_2008.pdf

View raw message