I have a pdf file which has bookmarks to different chapters(each chapter is linked to another pdf file in seperate folder using bookmarks). clicking on each chaptername will open a new pdf in the same parent pdf file.
I need to retrieve the bookmark urls of parent pdf file and alter the URLs.I used below code to retrieve bookmark properties(Action,File,Title etc), however didn't succeed in altering the path as it is dictionary key value pair.
IList<Dictionary<String, Object>> bmProperties= SimpleBookmark.GetBookmark(new PdfReader(new RandomAccessFileOrArray("http://XXXX/Shared%20Documents/Chapters.pdf"),
null));
foreach (IDictionary<String, Object> bmProperty in bmProperties)
{
foreach (var fileProperty in bmProperty.Keys)
{
if (fileProperty == "File")
{
// need the edit the value of Key-"File". Will it be possible to alter the value using pdfwriter
}
}