Free Support Forum - aspose.com

.Docx document not converting to PDF correctly

Hello,


I’m using Aspose.Words 2011.2.05 to convert a word document to PDF using the following method:

Aspose.Words.Document doc = new Aspose.Words.Document(@“Sample.docx”);
doc.Save(@“Converted.pdf”, Aspose.Words.SaveFormat.Pdf);

When converted, the second and third pages of the PDF contain a generic “This page cannot be displayed” error. Can I send the sample document on via PM or email? Thanks

Hello

Thanks for your inquiry. Could you please attach your input and output documents here for testing? It is safe to attach files in the forum. If you attach your document here, only you and Aspose staff members can download it. Also you can send the file to my e-mail as described here

http://www.aspose.com/corporate/purchase/faqs/send-license-to-aspose-staff.aspx

Best regards,

Thanks, see the attached zip file for the input and output documents.

Hello

Thank you for additional information. I cannot reproduce the problem on my side using the latest version of Aspose.Words. It seems you are using an old version of Aspose.Words. The latest version of Aspose.Words is 10.4.0; you can download this version from here:

http://www.aspose.com/community/files/51/.net-components/aspose.words-for-.net/category1188.aspx

Could you please try using the latest version of Aspose.Words and let me know how it goes on your side.

Best regards,

Thanks, have tested with the latest Aspose.Words and the issue is resolved.