From: SourceForge.net <no...@so...> - 2008-10-16 11:11:54
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=5438198 By: lenersen Hi, I'm new to PDF but we want to prefill some fields in an existing document from an application, so I am trying out a few things. I tried to run the FillForm example against a document. The field was updated correctly, but when I opened the document with Adobe Reader the new value was not displayed until I touched the field - either with the mouse (not just rollover) or by tabbing into it. Then it displays nicely. If I add "text1" to the field in the original document (with Adobe Reader) and the run the example (adding "text2", I see the old value ("text1") until I touch the field. Then i see "text2". As far as I can see the fields lack an appearance attribute (there is no /AP attibute in the dictionary). I think it will be alright if I supply a NormalAppearance, but how do I do that? I thought I could just add field.getAnnotations().setAppearance(new PDAppearance(??)) but PDAppearance cannot be instantiated directly. So what do I do? I know it would be a great help for you if I could send you the document and let you try it out yourselves, but unfortunately the document is confidential and I haven't been able to get my hands on a non-confidential copy. ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=727492 |