Conversion from word document to pdf using aspose.words not retaining the bookmarks.

Last post 02-07-2012, 12:27 AM by imran.rafique. 9 replies.
Sort Posts: Previous Next
  •  02-01-2012, 5:39 AM 358609

    Conversion from word document to pdf using aspose.words not retaining the bookmarks. .NET

    Hi team,

    I am using aspose.words to convert word doc to pdf. I am using the following code and i am using the latest version of the dll(11.0.0.0).

    Aspose.Words.License license = new Aspose.Words.License();

    license.SetLicense("Aspose.Total.lic");

    Aspose.Words.Document doc = new Aspose.Words.Document(path);

    doc.Save(path + "Document.Doc2PdfSave Out.pdf");

    But after conversion the bookmarks are not working in pdf.Please take it on a high priority and help me ASAP.

    Thanks,

    Shweta

     
  •  02-01-2012, 6:38 AM 358634 in reply to 358609

    Re: Conversion from word document to pdf using aspose.words not retaining the bookmarks.

    Hi Shweta,

    Thanks for your query. Please use the following code snippet for your requirement. Let me know, If you have any more queries.

    Document doc = new Document(MyDir + "bookmark.doc");

    PdfSaveOptions opt = new PdfSaveOptions();

    opt.BookmarksOutlineLevel = 1;

    doc.Save(MyDir + "out.pdf", opt);



    Best Regards,
    Tahir Manzoor
    Support Developer, Aspose Sialkot Team
    http://www.aspose.com
    Your File Format Experts
    Keep in touch! We're on Twitter and Facebook
     
  •  02-01-2012, 7:12 AM 358642 in reply to 358634

    Re: Conversion from word document to pdf using aspose.words not retaining the bookmarks.

    Hi Tahir,

    I am not getting pdfsaveoptions.I have referred aspose.words which is version 11.0.0.0.

    But it says

    The type or namespace name 'pdfsaveoptions' could not be found. Please let me know if am missing anything.

    Thanks,

    Shweta

     
  •  02-01-2012, 8:26 AM 358662 in reply to 358642

    Re: Conversion from word document to pdf using aspose.words not retaining the bookmarks.

    Hi Shweta,

    Please read following documentation link for your kind reference.

    http://docs.aspose.com/display/wordsnet/PdfSaveOptions+Class

    Aspose.Words.Saving.PdfSaveOptions opt = new Aspose.Words.Saving.PdfSaveOptions();



    Best Regards,
    Tahir Manzoor
    Support Developer, Aspose Sialkot Team
    http://www.aspose.com
    Your File Format Experts
    Keep in touch! We're on Twitter and Facebook
     
  •  02-01-2012, 8:55 AM 358672 in reply to 358662

    Re: Conversion from word document to pdf using aspose.words not retaining the bookmarks.

    Hi Tahir,

    Using the solution you gave am able to get the bookmarks at the left side

    But I am using the bookmarks in the table of contents. So when user clicks the link in Table of content he has to be redirected to particular page.

    Please let me know how to achieve this.

    Thanks,

    Shweta

     
  •  02-01-2012, 9:31 AM 358685 in reply to 358672

    Re: Conversion from word document to pdf using aspose.words not retaining the bookmarks.

    Hi Shweta,

    The same code works for Table of Contents. It would be great, If you share your document and output PDF file for investigation purposes.

    Best Regards,
    Tahir Manzoor
    Support Developer, Aspose Sialkot Team
    http://www.aspose.com
    Your File Format Experts
    Keep in touch! We're on Twitter and Facebook
     
  •  02-02-2012, 5:09 AM 358920 in reply to 358685

    Re: Conversion from word document to pdf using aspose.words not retaining the bookmarks. .NET

    Attachment: Present (inaccessible)

    Hi Tahir,

    I am getting the word document in doc format from SSRS(Sql Server Reporting services). I am able to convert the noraml word document with bookmark and table of contents to pdf successfully but the output word documnet(doc format) which i get from SSRS is not working as expected.

    PFA the word doc as well as the converted pdf doc. You can check in the pdf doc, you will not be redirected to the link in table of contents.

    Please let me know the right way to achive this.

     

    Thanks,

    Shweta

     
  •  02-02-2012, 8:06 AM 358956 in reply to 358920

    Re: Conversion from word document to pdf using aspose.words not retaining the bookmarks.

    Hi Shweta,

    I have tested the scenario and able to reproduce the same problem at my end. I have logged this issue in our issue tracking system and you will be notified via this forum thread once this issue is resolved.

    Best Regards,
    Tahir Manzoor
    Support Developer, Aspose Sialkot Team
    http://www.aspose.com
    Your File Format Experts
    Keep in touch! We're on Twitter and Facebook
     
  •  02-07-2012, 12:14 AM 359620 in reply to 358956

    Re: Conversion from word document to pdf using aspose.words not retaining the bookmarks.

    Hi Tahir,

    Any luck on this? This is high priority one.Could you please reply back ASAP.

    Thanks,
    Shweta
     
  •  02-07-2012, 12:27 AM 359621 in reply to 359620

    Re: Conversion from word document to pdf using aspose.words not retaining the bookmarks.

    Hi Shweta,

    Thanks for your inquiry. Unfortunately, your issues are pending for analysis. Once our developers analyze these issues, we will be able to provide you an estimate. You will be notify as soon as it is fixed. Sorry for inconvenience.


    Best Regards,
    Imran Rafique
    Support Developer
    Aspose Sialkot Team
    http://www.aspose.com/
    Aspose - Your File Format Experts
    Keep in touch! We're on Twitter and Facebook
     
View as RSS news feed in XML