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

Free Support Forum - aspose.com

Word to PDF - wrong output

Please find the attached word document. We tried to convert it to the Pdf and output failed badly. I’m also attaching the PDF output for your reference. Please let me know what can be done to make this work. Looking for some calls we can make in order to freeze the Layout for the Word and the output would be as it is.

Code to reproduce this at your end -
String docxName = “Doclet File.docx”;
Document docx = new Document(dirUrl + docxName);

final PdfSaveOptions options = new PdfSaveOptions();

// Enable level 1 bookmarks to be placed in the pdf document
// from the input document.
options.getOutlineOptions().setDefaultBookmarksOutlineLevel(1);

docx.save(dirUrl + docxName + “.pdf” , options);

Please have a look.

Any help would be appreciated.

Thanks,
Prakhar

Hi Prakhar,

Thanks for your inquiry. I have tested the scenario and have managed to reproduce the same issue at my side. For the sake of correction, I have logged this problem in our issue tracking system as WORDSNET-11960. I have linked this forum thread to the same issue and 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-11960) have been fixed in this .NET update and this Java update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.