更新时间:2023-10-28 21:31:40
使用PdfAnnotation创建链接
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