RadaeePDF.com :: Topic: Not showing hyperlinks in PDF files (1/1)
Welcome, Guest
Username: Password: Remember me

Signin/Signup with:

Questions about Android development and PDF

TOPIC: Not showing hyperlinks in PDF files

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

  • jrosseel
  • jrosseel's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
  • Karma: 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:
The administrator has disabled public write access.

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

  • Davide
  • Davide's Avatar
  • NOW ONLINE
  • Moderator
  • Posts: 699
  • Thank you received: 53
  • Karma: 15
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.
The administrator has disabled public write access.

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

  • jrosseel
  • jrosseel's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
  • Karma: 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).
The administrator has disabled public write access.

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

  • Davide
  • Davide's Avatar
  • NOW ONLINE
  • Moderator
  • Posts: 699
  • Thank you received: 53
  • Karma: 15
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.
The administrator has disabled public write access.
Powered by Kunena Forum