Welcome to the ASP.NET Core feedback portal. We’re happy you’re here! If you have feedback on how to improve the ASP.NET Core, we’d love to hear it!>
Thanks for joining our community and helping improve Syncfusion products!
It seems the DocToPdfConverter does not preserve word bookmarks anymore, despite being documented here.
See this code:
using (var docx = new WordDocument())
{ docx.EnsureMinimal(); var p = docx.Sections[0].Body.AddParagraph(); p.AppendBookmarkStart("Hello"); p.AppendText("Test"); p.AppendBookmarkEnd("Hello"); using(var converter = new DocToPDFConverter()) { var pdf = converter.ConvertToPDF(docx); Console.WriteLine(pdf.Bookmarks.Count); // expecting 1, displays 0 } }
Edit : I don't have this problem when using Syncfusion.DocToPDFConverter.AspNet version 19.1.0.54. So I suppose this bug is a regression.