How to check if a pdf page has a bookmark?

前端 未结 2 1498
执笔经年
执笔经年 2021-01-28 07:34

I\'m trying to check if a page in a pdf file has a bookmark and what is in that bookmark, I\'m using \"iTextSharp.text.pdf\" for reading and manipulating a pdf, but I can\'t fin

2条回答
  •  遇见更好的自我
    2021-01-28 08:09

    IList> bookmarks = SimpleBookmark.GetBookmark(pdfReader);
    foreach (Dictionary bk in bookmarks)
    {
    string bjj = bk.Values.ToArray().GetValue(0).ToString();
    

    Use This.

提交回复
热议问题