I am editing a word document and then I need to convert it to PDF with the code below.
- Code: Select all
using (MemoryStream ms = new MemoryStream())
{
ms.Position = 0;
document.SaveToStream(ms, new ToPdfParameterList
{
CreateWordBookmarks = true,
//CreateWordBookmarksUsingHeadings = true,
IsEmbeddedAllFonts = true,
//CreateWordBookmarksUsingHeadings = true,
WordBookmarksTitle = "root",
WordBookmarksColor = System.Drawing.Color.Black
});
pdf = ms.ToArray();
}
Is there a way to remove the bookmark title in the result pdf ? It seems like spire doc is creating a root bookmark and then adding all word bookmarks, is there a way to have only the word bookmarks in the pdf file?
If I save the file with the code above I get something like :
- root
- actual bookmarks from word
I would like the pdf to have :
-bookmarks from word
-another bookmark
etc..
How can I do this?
Thanks,