Results 1 to 1 of 1
- 03-15-2011, 11:17 AM #1
Member
- Join Date
- Oct 2010
- Posts
- 6
- Rep Power
- 0
PDFBox Font encoding and bad widths
Hello, I develop an application and I try to export some data to a pdf file. For this I choose the PDFBox. But my text is greek, and I can't get the pdf file show texte properly.
Can I set the encoding? like utf-8, iso-8859-7(greek encoding), I found that is about font, I have a font with greek characters for example verdana.ttf
I use
But the final pdf file, not showing properly the greek characters and also get the error message font verdana contains bad /widths.Java Code:PDFont font = PDTrueTypeFont.loadTTF(doc, "verdana.ttf"); ... ... contentStream.setFont(font, 12);
Thank you for your time,and I hope to help me!
Similar Threads
-
pdfbox to overwrite image on a pdf
By vammpiro in forum Advanced JavaReplies: 1Last Post: 03-09-2012, 03:54 PM -
Set Font Color, Font Style & Font Family While Replacing Text
By sherazam in forum Java SoftwareReplies: 0Last Post: 08-18-2010, 10:31 AM -
PDFBox certificate malformed
By wanderer2019 in forum Advanced JavaReplies: 0Last Post: 06-09-2010, 10:29 AM -
working with Text in PDFBox
By juehv in forum Advanced JavaReplies: 0Last Post: 03-31-2010, 02:58 PM -
How to change font/ font color etc in a graphic object using JCombobox?
By JavaInLove in forum AWT / SwingReplies: 5Last Post: 04-25-2009, 08:00 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks