http://markmail.org/thread/r2bbln57hjng7bxu
Hello , Thanks a lot for the suggestions Andreas. I implemented (3) solutions trying to fix the problem ... But they all didn't work : I tried the following : ex(1) : String pageData = stripper.getText( pdfFile ); PDTrueTypeFont font = PDTrueTypeFont.loadTTF( pdfFile, "images/arabic.ttf" ); // Draw the string with that font. ex(2) : String pageData = stripper.getText( pdfFile ); pageData = new String( pageData.getBytes(), "UTF-8" ); PDTrueTypeFont font = PDTrueTypeFont.loadTTF( pdfFile, "images/arabic.ttf" ); // Draw the string with that font. ex(3) : String pageData = stripper.getText( pdfFile ); PDSimpleFont font = PDType1Font.TIMES_ROMAN; font.setEncoding( new WinAnsiEncoding() ); // Draw the string with that font. Am I doing anything wrong here ? Thanks , Hesham