Conerting doc format file to pdf original look is not retained

I have a word file. I am converting it to pdf using below code:

Document contentDoc = new Document(“D:\PDF.docx”);
PdfSaveOptions options = new PdfSaveOptions();
options.setPrettyFormat(true);
contentDoc.save(“D:\PDFActual.pdf”, options);

But the look of pdf generated is different from word doc.
Any help would be appreciated

Hi Robin,

Thanks for your inquiry. After an initial test with Aspose.Words, I was unable to reproduce this issue on my side (please see attached 15.2.0.pdf). I would suggest you please upgrade to the latest version of Aspose.Words. You can download it from the following link. I hope, this helps.
http://www.aspose.com/community/files/72/java-components/aspose.words-for-java/default.aspx

Best regards,