I\'m struggling with this problem for hours now but I can\'t find a way out, the problem is that:
I wrote a program that generate a pdf file using itext version 7 (a
Step 1: load pdfCalligraph and licensekey jars into your classpath
Step 2: load license key from xml file:
LicenseKey.loadLicenseFile("itextkey-typography.xml");
Step 3:
Create your Document
as usual:
Document document = new Document(new PdfDocument(new PdfWriter(outFileName)));
PdfFont bf = PdfFontFactory.createFont(ARABIC_FONT, PdfEncodings.IDENTITY_H);
document.setFont(bf);
document.add(new Paragraph(ARABIC_TEXT).setTextAlignment(TextAlignment.RIGHT));
document.close();