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

Free Support Forum - aspose.com

Pdf generated using Aspose.Words has wrong layout


When converting a docx with justified paragraph setting to a pdf, the pdf does not respect the setting.

Document doc = new Document(@“test.docx”);
var saveOption = new PdfSaveOptions();
saveOption.Compliance = Aspose.Words.Saving.PdfCompliance.PdfA1b;
doc.Save(@“out.pdf”, saveOption);

I’ve attached the test files and the output for your reference, you can see the paragraph justify option is not reflected in the pdf. Please note we are using MS PGothic font for the Asian text and Arial for Latin text, I’ve attached the MS PGothic true type font file for you as well in case you don’t have it installed.

Could you please have a look into this?

Hi John,

Thanks for your inquiry. We have tested the scenario and have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-15464. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.


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