mkl wrote: > Ok, obviously pdfs completely broken need not be supported… I only read what > kind of fields bruno found and thought that such fields might be interesting > to support.
I threw away the code I wrote, but it's easy to reconstruct it. Some tools create PDFs with form field annotations in the /Annots of a page dictionary. However, the array of form fields referred to from the /AcroForm key is empty. If you want to fix this, you need to loop over all the pages, get the references to the widget annotations and put them in the array with the AcroForm fields. I know from experience that this doesn't work for all PDFs that are broken this way. People shouldn't use software that creates PDFs that are broken that way. Personally, whenever I create a form, I use iText, Acrobat or OpenOffice (depending on what I want to achieve). -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info ------------------------------------------------------------------------------ Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers & brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, & iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian Group, R/GA, & Big Spaceship. http://www.creativitycat.com _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/