Dear Aspose support,
I have a very long link inside a TextFragment, which I want to be recognised as a link and be redirected to it upon click.
PDF readers, like for example Adobe Acrobat Reader, recognise links that are just normal text like for example “https://forum.aspose.com” and redirect upon click to the referenced website.
However, if you have a very long link, so that it does not fit into one line, a line break is added, which cuts off the link.
LinkCutOff.jpg (37.1 KB)
Removing the line break by for example putting the text inside a table with the row.setWordWrapped(false) results in the text going beyond the right page margin and not being readable.
Is it possible, to have a very long text without having line breaks added to the text, but having the text still “breaking” when reaching the right page margin?
Word for example can export a PDF where long texts that break upon reaching the right page margin don’t have a line break that would cut off a link.
image.png (10.6 KB)
I cannot simply use textFragment.setHyperlink, because the textFragment might contain text other than the link, or even multiple links.
I use Java aspose-pdf 19.3 .
Thank you for your help.