Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Questions about iOS development and PDF

Highlight hyperlink with selective colors

More
11 years 7 months ago - 11 years 7 months ago #8539 by wdbutt
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.
Last edit: 11 years 7 months ago by support. Reason: Moved the question to a new thread.
More
11 years 7 months ago #8550 by support
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.
More
11 years 7 months ago #8552 by wdbutt
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.
More
11 years 7 months ago #8563 by wdbutt
Hi
please provide me the solution of annotation marked color should be different on mailto: and url... :(
More
11 years 7 months ago #8564 by support
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)
Time to create page: 0.410 seconds
Powered by Kunena Forum