-
-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue #120: Add support for setting hyperlink URL on a Cell #234
Conversation
Would love to see this get merged! Would be a great bit of functionality to have available so we can remove long links from our PDFs |
hi lambart, can you please give an example how to use it, I see your implementation is used as createImageCell, not sure if is possible using it as regular cell and just using text? |
I'm not sure I understand the question, it's not a 'standard' feature because PDFBox doesn't natively support tables. That's why we use boxable 🙂 This is a quality of life change. IIRC currently you need to have the full link text in the cell (which then automatically hyperlinks in most readers) where as this would allow you to have some 'click here' text that takes you somewhere when you click the cell. |
We need this, its actual not possible to add a hyperlink to a Cell |
I'll take a look at this PR this weekend. Hopefully we can get it merged and put out a new release. |
@JamJar00 Do you have a test you can include with this? |
Test is here: #262 |
Hi vivica77, sorry for the slow response! For our purposes, we have only used it in an We just do something like this...
I'm happy to see this getting some traction, and that some people find it useful. |
Hi John, |
Just contributing back some changes made for my employer. I see this has also been requested as issue #120.
Call
Cell.setUrl()
to add a URI to your Cell; it will be rendered and clickable in the enclosing Table.