Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable automatic URL hyperlinking #3172

Open
amanjeet opened this issue Apr 29, 2013 · 13 comments · May be fixed by #19110
Open

Enable automatic URL hyperlinking #3172

amanjeet opened this issue Apr 29, 2013 · 13 comments · May be fixed by #19110
Assignees

Comments

@amanjeet
Copy link

In Adobe Reader by default anything with a www is being recognized as a URL and becomes linkable.
It does not seem like the same thing works in pdf.js

@gigaherz
Copy link
Contributor

Any recent version of Firefox lets you right-click on anything that looks enough like an URL and then do "Open Link".

@melanieguymon
Copy link

We have experienced this issue as well, especially in IE. We love the viewer so far, and that is the only issue we have come across. Do you think there will be a solution soon?

@timvandermeij
Copy link
Contributor

@curliesue64 #3744 will probably address this.

@Snuffleupagus
Copy link
Collaborator

@timvandermeij Unfortunately this issue will not be fixed by that PR, since they are not the same.
This issue is about automatically creating hyperlinks from any piece of text, which looks like a link. To implement this, you would have to check the content of every <div> in the textLayer. I'm not sure if we would want to do this, and if it was implemented it should certainly not be on by default.

@websirnik
Copy link

One solution would be to use something like this: https://github.com/gregjacobs/Autolinker.js

@ubaidmohammed

This comment was marked as duplicate.

@yurydelendik
Copy link
Contributor

It will be easier to implement it after #6689 (Also #6590 shall help with this a lot).

@ghost

This comment was marked as duplicate.

@tomyitav

This comment was marked as duplicate.

@timvandermeij
Copy link
Contributor

This is not something I think anyone is working on. Moreover, it's far from trivial to implement since you'd have to detect URLs in text fragments that may be split up at any point in the document due to the way the PDF format handles text.

@tomyitav

This comment was marked as off-topic.

@CryptorClub

This comment was marked as off-topic.

@marco-c
Copy link
Contributor

marco-c commented Nov 5, 2024

@ryzokuken will work on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: High priority
Development

Successfully merging a pull request may close this issue.