Hello Michael.
Thank you for your reply.
I understand what you mean, but I don't know how to set both values and
appearance at once.
I am "solved" it by reopening PDF file again and values I have set additionally.
I know that it is probably not correct solution but for now it is acceptable
for me.
Roman
----- Original Message -----
From: mkl [via iText - General]
To: Roman Borik
Sent: Monday, November 26, 2012 6:07 PM
Subject: Re: Prefilled text in editable PdfFormField is not visible
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
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.
------------------------------------------------------------------------------
If you reply to this email, your message will be added to the discussion
below:
http://itext-general.2136553.n4.nabble.com/Prefilled-text-in-editable-PdfFormField-is-not-visible-tp4656995p4656996.html
To unsubscribe from Prefilled text in editable PdfFormField is not visible,
click here.
NAML
--
View this message in context:
http://itext-general.2136553.n4.nabble.com/Prefilled-text-in-editable-PdfFormField-is-not-visible-tp4656995p4657003.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
iText-questions@lists.sourceforge.net
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