![]() ![]() Set.addFont("fonts/NotoSansTamil-Regular.ttf") ĭtFontProvider(new FontProvider(set)) įor Itext5 and Hindi, I used the workaround of this site ( ) Set.addFont("fonts/NotoNaskhArabic-Regular.ttf") This blogpost gives some more background information and a way to select fonts automatically instead of setting them explicitly on the content elements: final PdfWriter writer = new PdfWriter("languages.pdf") įinal PdfDocument pdfDocument = new PdfDocument(writer) įinal Document document = new Document(pdfDocument) PdfFont f = PdfFontFactory.createFont("FreeSans.ttf", PdfEncodings.IDENTITY_H) ![]() ![]() PdfDocument pdfDoc = new PdfDocument(new PdfWriter("hindi.pdf")) If you want to use iText, you'll have to use iText 7 with the pdfCalligraph add-on. IText 5 does not fully support rendering of Hindi text. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |