Hi
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
Thanks for your inquiry. I think this issue is related to Aspose.Pdf.Kit. I used the following code for testing:
// Create simple docuemnt with bookamrk.
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.Write("This is simple docuemnt with bookmark.");
builder.InsertBreak(BreakType.PageBreak);
builder.Write("Here is bookmark");
builder.StartBookmark("Test");
builder.EndBookmark("Test");
// Save document to PDF.
PdfOptions opt = new PdfOptions();
opt.BookmarksOutlineLevel = 1;
doc.SaveToPdf(0, doc.PageCount, @"Test001\out.pdf", opt);
// Open generated PDF using Aspose.PDf.Kit and get bookmarks.
Aspose.Pdf.Kit.PdfBookMarkEditor bookMarkEditor = new PdfBookMarkEditor();
bookMarkEditor.BindPdf(@"Test001\out.pdf");
foreach (Aspose.Pdf.Kit.BookMark mark in bookMarkEditor.ExtractBookMarks())
{
Console.WriteLine(mark.Title);
}
Adobe Acrobat Reader shows bookmark name properly, but Aspose.Pdf.Kit reads it with ‘\0’ characters. I will move this thread to Aspose.Pdf.Kit forum. My colleagues will answer you shortly.
Best regards.