Home > Software engineering >  iText7 text value is hidden
iText7 text value is hidden

Time:09-22

I have a secured enter image description here

After I run the code, the field still looks like before, but there is a value if I click on it:

enter image description here

After I modified the field (added a space at the end), now it shows the text:

enter image description here

I think it's because there is some styling on the field. How can I achieve that is shown on the last picture?

Software Versions:

Itext -> 7.1.16

Adobe Acrobat -> 2020.009.20063

CodePudding user response:

After the attempt to reproduce the issue here failed, the next step was comparing versions of software involved.

Synchronizing the iText version to the current 7.1.16 still resulted in different observations.

But then updating the PDF viewer, Adobe Acrobat (Reader), finally resolved the issue.

Apparently Acrobat 2020.009.20063 fails to display the field properly while Acrobat 2021.001.20155 and 2021.007.20091 succeed.

(One might think that basic functionality like field value showing should have been stable in Acrobat for a number of years. But apparently changes do still occur here. This may be related to hardening of signed forms against forgery in the recent months and years.)

  • Related