First of all, let me thank the SO community for helping me so many times in the past; you guys are an amazing resource!
At my work, I am working on a web application that uses PDF templates created in Scribus and iText Java to populate templates with data from our database. Sometimes a user-provided field is required and iText is not affected. When the .pdf is loaded, the field is edited and the copy is saved using Evince. As a result, the file will not display the edited text when it is reopened. However, when focusing the editable field, it displays the saved text. Nefocus, the text disappears. Cut text, paste back into the box; it remains visible until you save and reopen the document. After saving and reopening the original problem appears. I found many very similar posts on this issue, but none of the solutions for which seem to work for me.
In addition, the problem is bizarre. If I open the Scribus template (a PDF file not affected by iText) using Evince, then edit the fields and save them, they will display correctly when re-opened. However, if the library touches the template, a problem occurs. Similarly, I can reproduce the problem with the PDF files that I found while searching for the cause of this problem; like this:
http://www.quask.com/samples/pdfforms/pcpurchase.pdf
This makes me think that the wrong files may be damaged in some way and that iText may be causing my problem, but iText is not the only way in which I can reproduce the problem so that I donβt know what to think. I cannot find a working solution among the many that I have seen. Is anyone familiar enough with this problem to tell me where I can figure this out, or to offer some insight into the tools I use? Most likely, if you are looking for a problem using google, I saw it.
I am using Ubuntu 12.04 (exact), Evince 3.4.0, iText 2.1.5 and can try to fill you with any other relevant details upon request. I am afraid to publish any code, since I'm not sure if it is kosher, and it is great for building forms, except for this specific problem; not to mention that I can reproduce the problem without using our webapp.
This is my first post here, and I'm a beginner programmer (still at school!), So please let me know if I broke any conventions or could improve my future requests.
Thanks for any help you can offer!