Thank you all for your help. >From a machine running windows I came up with these filenames for each font:
PDType1Font.TIMES_ROMAN --> C:\Windows\FONTS\times.ttf PDType1Font.TIMES_BOLD --> C:\Windows\FONTS\timesbd.ttf PDType1Font.TIMES_ITALIC --> C:\Windows\FONTS\timesi.ttf PDType1Font.TIMES_BOLD_ITALIC --> C:\Windows\FONTS\timesbi.ttf PDType1Font.HELVETICA --> C:\Windows\FONTS\arial.ttf PDType1Font.HELVETICA_BOLD --> C:\Windows\FONTS\arialbd.ttf PDType1Font.HELVETICA_OBLIQUE --> C:\Windows\FONTS\ariali.ttf PDType1Font.HELVETICA_BOLD_OBLIQUE --> C:\Windows\FONTS\arialbi.ttf PDType1Font.COURIER --> C:\Windows\FONTS\cour.ttf PDType1Font.COURIER_BOLD --> C:\Windows\FONTS\courbd.ttf PDType1Font.COURIER_OBLIQUE --> C:\Windows\FONTS\couri.ttf PDType1Font.COURIER_BOLD_OBLIQUE --> C:\Windows\FONTS\courbi.ttf PDType1Font.SYMBOL --> C:\Windows\FONTS\symbol.ttf PDType1Font.ZAPF_DINGBAT--> C:\Windows\FONTS\msgothic.ttc Searching a bit. I decided to use: wget http://li.nux.ro/download/nux/dextop/el7/x86_64/webcore-fonts-3.0-1.noarch.rpm rpm - webcore-fonts-3.0-1.noarch.rpm which included most of the fonts and finally copied msgothic.ttc to /usr/share/fonts I have another question... Are these fonts free to copy? or will I need to purchase one by one? Thank you. Best Regards. 2016-10-03 12:55 GMT-05:00 John Hewson <[email protected]>: > > > On 3 Oct 2016, at 06:20, jorgeeflorez . <[email protected]> > wrote: > > > > Hi all, > > > > I am using PDFBox 2.0.0-RC2 on a web application that is deployed on > > Wildlfy (Centos 6.8 server). I am trying render a page of a pdf file as > an > > image but I am getting these warning messages > > > > WARN org.apache.pdfbox.pdmodel.font.FileSystemFontProvider - Building > > on-disk font cache, this may take a while > > WARN org.apache.pdfbox.pdmodel.font.FileSystemFontProvider - Finished > > building on-disk font cache, found 0 fonts > > WARN org.apache.pdfbox.pdmodel.font.PDType1Font - Using fallback font > > LiberationSans for base font Times-Roman > > WARN org.apache.pdfbox.pdmodel.font.PDType1Font - Using fallback font > > LiberationSans for base font Times-Bold > > WARN org.apache.pdfbox.pdmodel.font.PDType1Font - Using fallback font > > LiberationSans for base font Times-Italic > > WARN org.apache.pdfbox.pdmodel.font.PDType1Font - Using fallback font > > LiberationSans for base font Times-BoldItalic > > WARN org.apache.pdfbox.pdmodel.font.PDType1Font - Using fallback font > > LiberationSans for base font Helvetica > > WARN org.apache.pdfbox.pdmodel.font.PDType1Font - Using fallback font > > LiberationSans for base font Helvetica-Bold > > WARN org.apache.pdfbox.pdmodel.font.PDType1Font - Using fallback font > > LiberationSans for base font Helvetica-Oblique > > WARN org.apache.pdfbox.pdmodel.font.PDType1Font - Using fallback font > > LiberationSans for base font Helvetica-BoldOblique > > WARN org.apache.pdfbox.pdmodel.font.PDType1Font - Using fallback font > > LiberationSans for base font Courier > > WARN org.apache.pdfbox.pdmodel.font.PDType1Font - Using fallback font > > LiberationSans for base font Courier-Bold > > WARN org.apache.pdfbox.pdmodel.font.PDType1Font - Using fallback font > > LiberationSans for base font Courier-Oblique > > WARN org.apache.pdfbox.pdmodel.font.PDType1Font - Using fallback font > > LiberationSans for base font Courier-BoldOblique > > WARN org.apache.pdfbox.pdmodel.font.PDType1Font - Using fallback font > > LiberationSans for base font Symbol > > WARN org.apache.pdfbox.pdmodel.font.PDType1Font - Using fallback font > > LiberationSans for base font ZapfDingbats > > WARN org.apache.pdfbox.pdmodel.font.PDType1Font - Using fallback font > > LiberationSans for Courier > > > > The image generated is pretty different. If I understand correctly, these > > fonts are 'always' available (according to > > http://pdfbox.apache.org/1.8/cookbook/workingwithfonts.html). I would > like > > to know if I should do some additional configuration or adjustment to fix > > these warning messages. > > Your system has no fonts installed. Presumably because it’s a server. You > should install some fonts from your system’s package manager. > > > Thank you. > > > > Best Regards. > > > > Jorge Flórez > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >

