I want to add an hyperlink to a pdf file. And I use code below:
page.AddAnnotURI(rect, "http://www.radaeepdf.com/forum/newtopic");
The generated pdf file has nothing change visually, so I want to set an icon to indicate the added hyperlink, here is my code:
page.AddAnnotURI(rect, "http://www.radaeepdf.com/forum/newtopic");
//set an icon to indicate the added hyperlink
page.GetAnnot(page.GetAnnotCount() - 1).SetIcon(R.drawable.pdf_custom_stamp);
Run above code cause an NullPointerException, GetAnnot(index) return null,.
My question is how to set an icon to indicate the added hyperlink, thanks.