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

Free Support Forum - aspose.com

Error converting from docx to pdf

If I try to convert my docx document to pdf I get a error message “Cant convert to 259”. I have tried to convert a simpel word document to pdf and that was convert OK but not this document.
My code is :

Aspose.Words.Document objDoc = new Aspose.Words.Document("c:\\test.docx");

I have attached the document.
Kim Johansen


Thanks for your request. It seems, this problem is already resolved in the current codebase. The fix will be included into the next hotfix, which will be released within few weeks. You will be notified. As a workaround please try using the following code:

Document doc = new Document(@"Test001\test.docx");
foreach(Section section in doc.Sections)
    section.PageSetup.FirstPageTray = PaperTray.DefaultBin;
    section.PageSetup.OtherPagesTray = PaperTray.DefaultBin;

Hope this helps.
Best regards,

Hi Andrey

That works


Kim johansen

The issues you have found earlier (filed as 11758) have been fixed in this update.

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