Reputation: 2249
I create a PDF using iText in C# with filled Formfields. The created PDF looks fine on Windows 8.1 Adobe Reader but on Windows 7 Adobe Reader the Fields are all purple and you can only see the values if you click each Textfield.
Is there some default option in Adobe Reader to display the values from Formfields in a pdf?
If i click on print all the values are gone in Windows 7. In Windows 8.1 all the values are still there.
Any Help would be nice. Thanks in Advance!
Upvotes: 1
Views: 486
Reputation: 77528
Take a look at the following screen shot:
The fields are blueish just like in yours. This means that the fields are highlighted. However, if you click the button "Highlight existing fields" (marked with the arrow), the fields are no longer highlighted.
On another note: it seems that the fields aren't generated. If form
is your AcroFields
instance, you should add this to your code:
form.GenerateAppearances = true;
This will force iTextSharp to generate an appearance instead of relying on Adobe Reader to create appearances. That way, you won't have to click the field to see its appearance.
Upvotes: 2