Hi,
Please try changing this code segment
field.setValue(value);
if (field instanceof PDTextField) {
// font size = 8
String da = "/" + fontName + " 8 Tf 0 g";
((PDTextField) field).setDefaultAppearance(da);
}
so that setDefaultAppearance is called BEFORE setValue(). The reason is
that the appearance stream is created in setValue, and that one uses the
default appearance to know what font is used.
If it still doesn't work:
- update to 2.0.7
- upload the PDF to a sharehoster. If it is semi-confidential, send it
to me. If it is confidential, create a non-confidential one.
Tilman
Am 22.08.2017 um 09:39 schrieb Kate Kazantza:
Hello,
I am sending regarding an issue I am dealing with using PDFBox 2.0.6
for generating a pdf file.
When the generated pdf gets populated in mozilla , some of the fields
of the pdf are displayed normally and some of the fields not displayed
at all.
In other browsers (IE,Chrome,Opera) the pdf is populated as expected.
The ttf file that I load to pdf is “lucidaSansUnicode.ttf” as you will
see at the code snippet I attached.
I tested with several ttf files but the problem remains.
At the attached file you will find the code reference to above case I
am describing.
Please if there is something that I am missing to solve the problem I
would appreciate your response.
Kind Regards,
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]