开发者

XHTML to PDF using Flying Saucer and iText issue

开发者 https://www.devze.com 2023-02-22 06:10 出处:网络
I was able to convert XHTML to pdf using Flying Saucer and iText. However of the XHTML has an anchor tag, I am not getting it as link in the pdf. How do i render the link as it is in the pdf开发者_如何

I was able to convert XHTML to pdf using Flying Saucer and iText. However of the XHTML has an anchor tag, I am not getting it as link in the pdf. How do i render the link as it is in the pdf开发者_如何学Python also.

Thanks in advance


In iText, create a Chunk with the text representing the link and call its setAnchor to link it some URL.

0

精彩评论

暂无评论...
验证码 换一张
取 消