Problem in Docx to PDF conversion- text is not properly formatted for some languages

Hi Team,


We are trying to Convert Word document to PDF, which includes various languages like Arabic, Hebrew, Chinese etc. The generated PDF in this Conversion has some different Text alignment which is causing the text to change its meaning.
Attached are the Source and Result file for your reference (refer for Arabic & Hebrew language).

Below is the code used -

Document doc = new Document(filePath);
DocumentBuilder builder = new DocumentBuilder(doc);

PageSetup pageSetup = builder.getPageSetup();
// pageSetup.setTopMargin(ConvertUtil.inchToPoint(0.5));
pageSetup.setBottomMargin(ConvertUtil.inchToPoint(0.5));
pageSetup.setLeftMargin(ConvertUtil.inchToPoint(0.5));
pageSetup.setRightMargin(ConvertUtil.inchToPoint(0.5));
pageSetup.setHeaderDistance(ConvertUtil.inchToPoint(0.2));
pageSetup.setFooterDistance(ConvertUtil.inchToPoint(0.2));
doc.save(DestfilePath+"/Out.pdf");

Also, We are loading all required fonts externally.
Please find the environment details below-

1. JDK version we are using is jdk1.7.0_65
2. Unix version is Solaris 10 9/10 s10s_u9wos_14a SPARC

Can you please explain if anything is missing or what exactly the problem is?


Thanks and Regards,
Ashwini





Hi Douglas,


Thanks for your inquiry. Please zip and attach following font files here for testing:

  • ‘Benton Sans’
  • 'Mangal’

I have also generated a PDF file and attached it here for your reference. Please create a comparison screenshot highlighting (encircle) the problematic areas in this Aspose.Words generated PDF and attach it here for our reference. We will investigate the issue further on our end and provide you more information.

Best regards,

Hi Team,


Please find attached fonts as required, actually when we try to copy the content of word document and generated PDF on google translate, there can be seen difference in meaning of doc and PDF content.


Regards,
Ashwini

Hi Ashwini,


Thanks for your inquiry. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-13488. Our product team will further look into the details of this problem and we will keep you updated on the status of correction. We apologize for your inconvenience.

Best regards,

The issues you have found earlier (filed as WORDSNET-13488) have been fixed in this Aspose.Words for .NET 19.11 update and this Aspose.Words for Java 19.11 update.