i want to create an arabic pdf, but i have this problem:
my code:
FontProvider fontProvider = new DefaultFontProvider(false, false, false);
fontProvider.addFont("/police/Amiri-bold.ttf");
ConverterProperties converterProperties = new ConverterProperties();
converterProperties.setFontProvider(fontProvider);
converterProperties.setBaseUri("http://localhost:8080");
HtmlConverter.convertToPdf(cpar, pdfDoc, converterProperties);
pdfDoc.close();
i use itext7 v7.2.5 and html2pdf v4.0.5
the result must be like that:
I tried to use pdfcalligraph but it's not free!