Insert an image with a link in a PDF using PDFBox
-
04-12-2019 - |
题
I have multiple PDFs and I want to insert a logo on every page which links to http://xyz.com (that is, clicking on the logo opens up xyz.com in the browser). Also, I want to insert some text 'Click Here to view this page at xyz.com' next to the logo where 'Click Here' is a link (different link on every page, like http://xyz.com/show.php?id=76&page=3)
I have been able to add the logo and the text but could not figure out how to make the text a link.
解决方案
I had posted this on pdfbox-users mailing list also and a pointer to the solution was posted there by Hesham G. Link
不隶属于 StackOverflow