We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Justify Alignment of Paragraph is Lost | DOCX to PDF Conversion using Java

My code:

Document doc = new Document(inFile); 
doc.save(fos, options);
doc.save(fos, SaveFormat.PDF);

My docx document paragraphs are Justify Alignment, two-side alignment.
The result PDF paragraphs are Left Alignment, right side not alignment.

Who can help me? I’m appreciated!

@zhangxianli

Could you please ZIP and attach your input Word document here for testing? We will investigate the issue and provide you more information on it.

Hi, I’ve resolve the problem. Use Java-Words V21.1.0.

@zhangxianli

It is nice to hear from you that your problem has been resolved. Please feel free to ask if you have any question about Aspose.Words, we will be happy to help you.