I am using following code to export bookmarks/Headings from word to PDF
public static void ConvertWordToPDF(String FileIn, String FileOut)
{
Aspose.Words.Document d = new Aspose.Words.Document(FileIn);
Aspose.Words.Saving.PdfSaveOptions opt = new Aspose.Words.Saving.PdfSaveOptions();
opt.OutlineOptions.DefaultBookmarksOutlineLevel = 1;
d.Save(FileOut, opt);
}
But in output PDF, bookmarks are not exported. Please find sample input and output files
testconverstion.zip (46.2 KB)