Jonas
Jonas

Reputation: 2249

Display values of FormFields in PDF using Windows 7 Adobe Reader? (iText, C# created PDF)

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!

enter image description here

Upvotes: 1

Views: 486

Answers (1)

Bruno Lowagie
Bruno Lowagie

Reputation: 77528

Take a look at the following screen shot:

enter image description here

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

Related Questions