I want to add or create a hyperlink in bottom of the PDF page and it will redirecting to another page by using itextsharp. and next thing is for example if i have 50 pages PDF file. add 3 pages to it. and in 50th page i want 2 hyperlinks at bottom of the page. one to go for 51st page and another one to for 52nd page. next thing is if i am click back button in 51st page and 52nd page also it will come to 50th page.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Using PdfAnnotation to create link
PdfAnnotation annotation;
annotation = PdfAnnotation.CreateLink(
stamper.Writer, rect, PdfAnnotation.HIGHLIGHT_INVERT,
new PdfAction(string.Format(IMDB, screening.movie.Imdb))
);
stamper.AddAnnotation(annotation, page);
More details to refer this link
http://kuujinbo.info/iTextInAction2Ed/index.aspx?ch=Chapter07&ex=TimetableAnnotations2