Free Support Forum - aspose.com

Aspose PDF not correctly converting bookmark end

UserFiles.zip (136.3 KB)
contains a word file and two generated PDF files . One is generated using aspose (SimpleTestDoc.pdf) and other through MSWord.
If you check bookmarks from Word file they have starting point and endpoint as shown in screenshot below.
wordScreen.jpg (73.3 KB)

But when we check these bookmarks in Aspose converted PDF it is not showing bookmark End.
It is goving bookmark.PageDisplay_Right and bookmark.PageDisplay_Bottom as 0 always.
Below is the code we are using

Aspose.Pdf.Document document = new Aspose.Pdf.Document(“D:\temp\UserFiles\msw-2016.pdf”);
// Create PdfBookmarkEditor
PdfBookmarkEditor bookmarkEditor = new PdfBookmarkEditor();

// Open PDF file
bookmarkEditor.BindPdf(document);

// Extract bookmarks
Aspose.Pdf.Facades.Bookmarks bookmarks = bookmarkEditor.ExtractBookmarks();
foreach (Aspose.Pdf.Facades.Bookmark bookmark in bookmarks)
{
Console.WriteLine(“Title: {0}”, bookmark.Title);
Console.WriteLine(“Bottom: {0}”, bookmark.PageDisplay_Bottom);
Console.WriteLine(“Top: {0}”, bookmark.PageDisplay_Top);
Console.WriteLine(“Left: {0}”, bookmark.PageDisplay_Left);
Console.WriteLine(“Right: {0}”, bookmark.PageDisplay_Right);
}

@mhtsharma9

Thanks for contacting support.

We were able to notice this behavior of the API in our environment. Hence, we have opened an investigation ticket as PDFNET-44874 in our issue tracking system. We will look into details of the scenario and keep you posted in case of further progress. Please be patient and spare us little time.

We are sorry for the inconvenience.

Any update on this?

@mhtsharma9

Thanks for your inquiry.

I am afraid that earlier logged issue is not yet resolved, due to large number of pending issues in the queue. As the issue has been logged under Free Support Model, it will be investigated and resolved on first come first serve basis. As soon as we have some definite updates regarding its resolution, we will surely inform you within this forum thread. Please be patient and spare us little time.

We are sorry for the inconvenience.

Hey,
Any updates on this?

@mhtsharma9

Thanks for your inquiry.

I am afraid that earlier logged issue is still pending for resolution. As shared earlier, due to previously logged issues, we were unable to investigate/resolve your issue. We will definitely let you know as soon as some progress is made in this regard. We highly appreciate your patience in this matter. Please spare us little time.

We are sorry for the inconvenience.

Is there any update on when this issue will be resolved?

@gkukko

Thanks for your inquiry.

I regret to share that due to other high priority issues, your issue is not yet resolved. We will definitely investigate and resolve this issue after resolving those who were logged prior to this. As soon as some definite updates about issue resolution are available, we will let you know. Please be patient and spare us little time.

We are sorry for the inconvenience.