Not showing hyperlinks in PDF files - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
01 Jun 2018
During last few days we're experiencing some delay in website stmp provider channel.
Some notification email from the website might not reaching containers.
We're working on a definitive solution.
Read More...
Questions about Android development and PDF
  • Page:
  • 1

TOPIC: Not showing hyperlinks in PDF files

Not showing hyperlinks in PDF files 3 years 2 months ago #8812

  • jrosseel
  • jrosseel's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 8
  • Thank you received: 0
Hello,

We have PDF files with lots of hyperlinks in them. The library seems to show those in light blue. See attachment.

How can we avoid that these get shown as we don;t allow someone to click/tap on them anyway.
Attachments:

Please Log in or Create an account to join the conversation.

Not showing hyperlinks in PDF files 3 years 2 months ago #8814

  • Davide
  • Davide's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 803
  • Karma: 16
  • Thank you received: 63
Hi,
you can use annotation.RemoveFromPage() to remove annotation.
You should re-render page to display modified data.
This method is valid in professional or premium version.

Please Log in or Create an account to join the conversation.

Not showing hyperlinks in PDF files 3 years 2 months ago #8817

  • jrosseel
  • jrosseel's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 8
  • Thank you received: 0
So you mean that before displaying we would have to walk through the document, and remove all hyperlink "annotations". That's annoying.

I'd rather have a global option to not display these (or even all) annotations (we handle annotations in a different layer anyway, not inside the PDF).

Please Log in or Create an account to join the conversation.

Not showing hyperlinks in PDF files 3 years 2 months ago #8818

  • Davide
  • Davide's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 803
  • Karma: 16
  • Thank you received: 63
Hi,
if you don't want to remove them, you can set transparent background color to the links.

You have to:
setAnnotTransparency(0x00000000);
in default_config() method of Global class.

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum