Highlight hyperlink with selective colors - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
13 Jul 2017
Microsoft has ended support for Windows Phone 8.1
Read More...
Questions about iOS development and PDF
  • Page:
  • 1

TOPIC: Highlight hyperlink with selective colors

Highlight hyperlink with selective colors 3 years 9 months ago #8539

  • wdbutt
  • wdbutt's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 17
  • Thank you received: 0
Ok thanks. Now I want in pdf reader that email addresses should be marked with different color and url links should be marked with different. So please guide me to resolve my issue asap.

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

Last edit: by support. Reason: Moved the question to a new thread.

Highlight hyperlink with selective colors 3 years 9 months ago #8550

  • support
  • support's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 571
  • Karma: 6
  • Thank you received: 46
My colleague was meaning that you should modify the pdf file itself during the generation or the manual annotation, so that you could highlight email with a different colour.

Hyperlinks, theoretically, could contains everything you would like to write into: http://, https://, mailto: but also your own reserved url structure like my://.
That's the reason hyperlinks are simply hyperlinks and aren't aware of their own type.

About reserved url: i.e. we're adopting such kind of encoding to make our native applications interact with pdf files.

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

Highlight hyperlink with selective colors 3 years 9 months ago #8552

  • wdbutt
  • wdbutt's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 17
  • Thank you received: 0
Ok I understand your point. But If you tell me in reader code that when we placing the color of hyperlinks can we check it that this is mailto: or url ? So we can change color for both mailto and url.

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

Highlight hyperlink with selective colors 3 years 9 months ago #8563

  • wdbutt
  • wdbutt's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 17
  • Thank you received: 0
Hi
please provide me the solution of annotation marked color should be different on mailto: and url... :(

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

Highlight hyperlink with selective colors 3 years 9 months ago #8564

  • support
  • support's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 571
  • Karma: 6
  • Thank you received: 46
The rendering is done within the native library and not modifiable by the java/objective-c code.

After a brainstorming, the workaround we thought about is:
- open the page and render it (simple)
- scan page's annotations (pro and premium) (simple)
- take uri type annotation list (simple)
- extract uri strings (simple)
- evaluate mailto: strings annotations (simple)
- take annotations coordinates (simple)
- transform that page coordinates into screen coordinates and put an overlay on the rendered page
(look at demo code, where search function highlight word on the page)
The following user(s) said Thank You: wdbutt

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

  • Page:
  • 1
Powered by Kunena Forum