Roman, Roman Borik wrote > I need add to PDF two editable fields that will be prefilled with any > text. > This works fine but problem is that prefilled text is not visible until is > clicked to the edit field and text is changed. Has someone an idea what is > wrong? > ZIP archive with source code and PDF files (before and after) is attached > - > itext-pdf-rombor.zip > <http://itext-general.2136553.n4.nabble.com/file/n4656995/itext-pdf-rombor.zip> >
In your code you set the values of the new text fields all right, but you also explicitly set their normal appearances to some empty rectangle. Thus, when viewing the PDF normally, your PDF viewer displays the empty rectangle, and only when it starts filling in, it initializes its own value display. Regards, Michael PS: Unless you register with the mailing list, your messages will not reach all the mailing list subscribers. -- View this message in context: http://itext-general.2136553.n4.nabble.com/Prefilled-text-in-editable-PdfFormField-is-not-visible-tp4656995p4656996.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
