First post on this list.

my SO question -
https://stackoverflow.com/questions/59168828/pdfbox-2-0-17-fonts-on-linux

I am converting a page in a PDF document to bytes and then constructing an
image out of it.

On Windows, the image is constructed fine. On Linux (RedHat), the letters
on the image look smudged (overlap each other)

In the logs (weblogic), i see the following indicating the fonts required
are missing on Linux.

<Dec 3, 2019 11:06:35 PM EST> <Warning>
<org.apache.pdfbox.pdmodel.font.PDType1Font> <BEA-000000> <Using
fallback font LiberationSans for Helvetica-Bold>
<Dec 3, 2019 11:06:35 PM EST> <Warning>
<org.apache.pdfbox.pdmodel.font.PDType1Font> <BEA-000000> <Using
fallback font LiberationSans for Times-Roman>
<Dec 3, 2019 11:06:35 PM EST> <Warning>
<org.apache.pdfbox.pdmodel.font.PDType1Font> <BEA-000000> <Using
fallback font LiberationSans for Times-Bold>
<Dec 3, 2019 11:06:35 PM EST> <Warning>
<org.apache.pdfbox.pdmodel.font.PDType1Font> <BEA-000000> <Using
fallback font LiberationSans for Times-Italic>
<Dec 3, 2019 11:06:35 PM EST> <Warning>
<org.apache.pdfbox.pdmodel.font.PDType1Font> <BEA-000000> <Using
fallback font LiberationSans for Helvetica>


How can supply the missing fonts on Linux? I see references to using a
properties file (PDFBox_External_Fonts.properties) on versions before 2.
What can i do on pdfbox version 2.0.17? I am unable to find any
documentation on how to proceed. Is there a location within the pdfbox.jar
i can place them? I would ideally like to use a property file to point the
location of the .ttf fonts instead of having to get them installed on the
linux server.

Reply via email to