testarabic.pdf
testarabic.docx
Hi,
Using Docx4j(3.2.0), tried to generate PDF from docx using 'Docx4J.toFO'.
Arabic characters are missing in PDF.
Code Snippet:
private static void createTestPDF() throws Exception{
FOSettings foSettings = Docx4J.createFOSettings();
InputStream is = new FileInputStream(new File("testarabic.docx"));
WordprocessingMLPackage wordMLPackage = WordprocessingMLPackage.load(is);
//Print all available physical fonts
PhysicalFonts.discoverPhysicalFonts();
Map<String, PhysicalFont> physicalFonts = PhysicalFonts.getPhysicalFonts();
Iterator<Entry<String, PhysicalFont>> availableFonts = physicalFonts.entrySet().iterator();
while(availableFonts.hasNext()) {
Entry<String, PhysicalFont> font = availableFonts.next();
String key = font.getKey();
PhysicalFont ...