且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用iTextSharp的pdf格式页面的超链接添加到网页

更新时间: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