Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.8.5
-
Linux, OSX
Description
Setting the font size of a PDField causes the font size to change on click on the field. It starts out with incorrect font size. When the field is clicked, it displays in the font size correctly. Clicking outside the field, reverts back to the incorrect font size.
This behavior was also mentioned in PDFBOX-1419 in passing.
Code:
pdfFormField.getDictionary.setString(COSName.DA, "/Helv 10 Tf 0 g”) pdfFormField.setValue("Hello”)
A simple example of such a PDF is here.
Attachments
Issue Links
- depends upon
-
PDFBOX-2333 Overhaul the appearance generation for PDF forms
- Closed
- duplicates
-
PDFBOX-39 Text moves when using SetField and then selecting field
- Closed