I have a web application where I need to generate PDF files on the Linux
server. I need to support a few Indian languages along with English. I
started by using Arial Unicode (ARIALUNI.TTF) and test pdf generation on my
the application installed on my Windows machine. iText is generating pdf
files with Gujarati fonts but doesn't seem to implement any ligature.
Does iText have ligature implementation for Indian languages such as Hindi,
Gujarati, Marathi, etc?
Here is the part of the PDF generation code:
============================
// open the pdf document
Document document = new Document();
// get an instance of PdfWriter and in the process link it with the output
file
PdfWriter.getInstance(document, new FileOutputStream(uniqueFilePath)); //
uniqueFilePath defined earlier in the program
// open the document
document.open();
// specify the font location
String fontFile = "C:/WINDOWS/Fonts/ARIALUNI.TTF";
// create base font for the specified font
BaseFont baseFont = BaseFont.createFont(fontFile, BaseFont.IDENTITY_H,
BaseFont.EMBEDDED);
Font font = new Font(baseFont, 12);
document.add(new Paragraph(text, font)); // text in unicode defined earlier
in the program
===============
Thanks in advance.
Dilip
--
View this message in context:
http://itext-general.2136553.n4.nabble.com/ligature-implementation-for-Indian-languages-Devanagari-script-tp3423055p3423055.html
Sent from the iText - General mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself;
WebMatrix provides all the features you need to develop and
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
iText-questions mailing list
[email protected]
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