Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about Android development and PDF
  • Page:
  • 1

TOPIC:

Not showing hyperlinks in PDF files 9 years 2 days ago #8812

  • jrosseel
  • jrosseel's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • 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 9 years 2 days ago #8814

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Thank you received: 65
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 9 years 1 day ago #8817

  • jrosseel
  • jrosseel's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • 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 9 years 1 day ago #8818

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Thank you received: 65
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