Hi Awais hafeez,
Thanks for sharing the code. I have used this code and after word is converted to pdf the bookmarks and bookmark panel is coming and we can navigate to bookmark by clicking it in panel.
But i am not able to navigate to particular bookmark in web browser directly by passing the #nameddest as parameter in the pdf link. . I tried using below two option
http://servername/Share Document/Manual_Test/testbm1.pdf?#nameddest=test8 or
Below is code i have used:
PdfOptions pdfOptions = new PdfOptions();
pdfOptions.HeadingsOutlineLevels = 3;
pdfOptions.ExpandedOutlineLevels = 1;
pdfOptions.BookmarksOutlineLevel = 2;
ConversionOptions co = new ConversionOptions();
co.OverwriteExistingFiles = true;
ConvertedItem result = Converter.ConvertFileToPdf(sPFile, sPFile.ParentFolder,co,pdfOptions);
Please let us know if we need to do any thing else to use the nameddest parameter and navigate to bookmark directly using web browser.
Please find attached doc file which is converted to pdf.
Thanks & Regards,