I have a word file and I find there're no bookmarks after converting it to pdf . But there're bookmarks if I save the word as pdf directly in Micrsoft Word.
Question: how can I keep the bookmarks in Sprire.Doc when converting word to pdf?
I have attached a file.zip and it contains 3 files:
orginal_word_file.docx - this is the word file I used;
word_save_as_pdf.pdf - this is the pdf I saved from Micrsoft Word;
word_to_pdf_with_spire.doc.pdf - this is what I converted with Spire.Doc
this is the code I used to convert:
var document = new Document(filePath);
document.KeepSameFormat = true;
document.SaveToFile(outputPath, FileFormat.PDF);
Please help and respond ASAP. Thanks again!
Xiutao