Hello,
We are using Aspose version 11.3 (Java platform) to process & convert Word documents to PDF; it works fine for Latin languages but we are facing some critical issues with Arabic document conversion; follows are two blocking ones:
1) Tables (in RTL Arabic documents) change their direction in the output PDF regardless whether this table is setup to be RTL or LTR in the original docx document; I couldn’t find any workaround to overcome this.
2) This second issue needs your attention please; it took me quite a while to understand the behavior of what is happening; in short: whenever a bookmark surrounds an Arabic text/paragraph (which is set to RTL) Aspose fails to save the document but not in all cases; only in case the data to be replaced with contains non-alphanumeric characters. It is easier seen, I have created some samples (attached) with comments that explain each case. The test-one_ar.docx is the document we are trying to process & convert to pdf; the test-one.json contains the data which should be placed in the Word document before converting it to pdf. Please note that the json file also contain some very useful comments.
My development machine has Aspose Word 11.3 for Java / Windows 7 x64 / MS Office 2010 / my call stack shows this:
Caused by: java.lang.NullPointerException
, requestUrl=http://localhost:8080/doc-gen-service/service/templates/test}
com.consol.docgen.service.aspose.DocxProcessingException: Can not save to DocType{contentType='application/pdf', fileExtension='pdf'} stream org.eclipse.jetty.server.AbstractHttpConnection$Output@1661e67c
at com.consol.docgen.service.aspose.AsposeDocxTemplate.save(AsposeDocxTemplate.java:569)
at com.consol.docgen.service.aspose.AsposeDocumentService.generate(AsposeDocumentService.java:34)
I hope to hear from you soon about these issues; kindly look the comments on both attachments; it took me some good amount of time to find out what I wrote there and I’m sure it would be of a big help to you to have a look at it.
Many thanks & Regards,
Alaa Tadmori