How to add bookmark in a PDF that has images
C#
1
Posts
1
Posters
0
Views
1
Watching
-
I have a set of tiff images. I converted those images to PDF using iTextSharp dll. I want to add bookmarks in that PDF file. Does it possible? I tried with the below code:
string bookMarkName = inputCriteria[0].IndexName;
Chapter chapter1 = new Chapter(new Paragraph(bookMarkName), 1);
chapter1.BookmarkTitle = bookMarkName;
chapter1.BookmarkOpen = true;
document.Add(chapter1);Even though the PDF file is created with bookmarks, it simply added the bookMarkname in every page as bookMark even though that string is not available in that particular page. Is there any other way which I can achieve this? Please help.