简体   繁体   中英

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!

在此处输入图片说明

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM