Hello,
I try to export some data from my Java application to a pdf file. I decided to use the pdfBox library,but I realized that I could not do the Greek characters displayed properly into the pdf file. Is there a way to set the encoding? to utf8, or iso-8859-7? I try something like PdFontEncoding or Encoding but I did not get anything.

Also I tried to add external truetype font with greek characters but nothing plus I when I open the exported pdf file with Adobe Acrobat I get a error message "verdana font contains bad \width"(in the case i use
PDFont font = PDTrueTypeFont.loadTTF(doc, "verdana.ttf");

I see a method in javadoc at class PDFontDescriptorDictionary with name setCharacterSet, can I use this in way to set the utf or iso-8859-7(greek charset)?

Thank you for your time.