Hi,
I have a table in my database that includes the page numbers of combined pdf files.
I want to open the combined pdf file and add bookmarks using those page numbers.
Here is the code I've used:
{
string strTitle = ledger._strDocName;
int intDocIndex = ledger._intDocIndex;
PdfDestination pdfDocsDest = new PdfDestination(intDocIndex, new PointF(0,y),0);
PdfBookmark pdfDocsBM = thisDoc.Bookmarks.Add(strTitle);
pdfDocsBM.Color = Color.Blue;
pdfDocsBM.DisplayStyle = PdfTextStyle.Bold;
pdfDocsBM.Action = new PdfGoToAction(pdfDocsDest);
y = y + 5;
}
The bookmarks are being generated but if I look at pdfDocsBM.Action.Destination, the PageNumber property is correct, but the Page is Null.
Once all bookmarks have been created, all the bookmarks are pointed to page 1.
I've uploaded a screenshot of the properties
Thanks,
Rob