Free Support Forum - aspose.com

Error: Convert docx to pdf

If the document contains bookmarks, when convert to pdf, the bookmarks lost in the final document.

Hi,

Could you try to set the BookmarksOutlineLevel option before saving to PDF (http://www.aspose.com/documentation/.net-components/aspose.words-for-.net-and-java/aspose.words.saving.pdfoptions.bookmarksoutlinelevel.html) and let me know if it fixes the issue?

Here is a sample code:

Document doc = new Document("Bookmarks.docx");

PdfOptions pdfOptions = new PdfOptions();
pdfOptions.BookmarksOutlineLevel = 1;

doc.SaveToPdf(0, doc.PageCount, "Bookmarks.pdf", pdfOptions);

Regards,

Hi,

Thanks for your quickly reply.

I use this sample but the output is not correct. In pdf reader I see the bookmark panel but in the document not see the bookmark text.

Have any idea about this problem?

PD: Attach the initial and final document.

Thanks.

Hi,


I was able to reproduce the problem and logged it in our defect database. You will be notified once it is fixed.

Thanks,