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

Free Support Forum - aspose.com

Rendition is not working as expected for word document(ECDCTS-9303)

Hi Team,

We are trying to transform word into pdf. The output file is not coming as expected. The first line of page no 2 is coming in last line of of page no 1 in output file. We have used following code for transformation

String fileName = "C:\\Docs\\test_docs\\test_document.docx";
com.aspose.words.Document document = new com.aspose.words.Document(fileName);
document.save("C:\\Docs\\test_docs\\test_document.pdf");

file-new.zip (399.0 KB)

Attaching aspose and office rendition.

Thanks,
Arvind

@rnara I cannot reproduce the problem on my side. But I see that fonts used in PDF produced on my side are different then fonts used in your PDF documents.
Most likely the fonts used in your document are not available in the environment where document is converted. If Aspose.Words cannot find the fonts used in the document the fonts are substituted . This might lead into the layout difference, since substitution fonts might have different font metrics. You can implement IWarningCallback to get a notification when font substitution is performed.

Hi,

Thanks for the analysis. After installing required fonts. It is rendering as expected.

Regards,
Arvind

1 Like