Dear All, I am not able to write Arabic text in unix os. Arabic text is printed as blank. below is my java code for same. Font f = new Font(BaseFont.createFont(fontPath, BaseFont.IDENTITY_H, BaseFont.EMBEDDED), 8, Font.NORMAL); Font f1 = new Font(BaseFont.createFont(fontPath, BaseFont.CP1250, BaseFont.EMBEDDED), 8, Font.NORMAL); Font f2= new Font(BaseFont.createFont(fontPath, BaseFont.CP1252, BaseFont.EMBEDDED), 8, Font.NORMAL); Font f3 = new Font(BaseFont.createFont(fontPath, BaseFont.CP1257, BaseFont.EMBEDDED), 8, Font.NORMAL); OutputStream file = new FileOutputStream(new File("Test.pdf")); Document document = new Document(); PdfWriter.getInstance(document, file); document.open(); document.add(new Paragraph(jsonString,f)); document.add(new Paragraph(jsonString,f1)); document.add(new Paragraph(jsonString,f2)); document.add(new Paragraph(jsonString,f3)); document.add(new Paragraph("\u0634\u0647\u0648\u0631",f)); document.add(new Paragraph("\u0634\u0647\u0648\u0631",f1)); document.add(new Paragraph("\u0634\u0647\u0648\u0631",f2)); document.add(new Paragraph("\u0634\u0647\u0648\u0631",f3)); document.add(new Paragraph(new Date().toString())); document.close(); file.close();
Vimal Malani Tata Consultancy Services Cell:- 9867188266 Mailto: vimal.mal...@tcs.com Website: http://www.tcs.com ____________________________________________ Experience certainty. IT Services Business Solutions Consulting ____________________________________________ =====-----=====-----===== Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you
------------------------------------------------------------------------------
_______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php