Handling of wrong formatted links

Forum for the PDF-XChange Editor - Free and Licensed Versions

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Sean - Tracker, Paul - Tracker Supp, Chris - Tracker Supp, Tracker Supp-Stefan, Ivan - Tracker Software

Post Reply
Peter2
User
Posts: 846
Joined: Mon Sep 13, 2010 10:09 am
Location: Switzerland

Handling of wrong formatted links

Post by Peter2 » Thu Feb 11, 2016 7:09 pm

Here is a PDF with a wrong formatted link in the upper right corner: it should be a mail-link, but now it is a "semi formatted web-link".

PDF Viewer tries to handle it and displays an error message, Editor does nothing.

Maybe that's an example to check the handling of this kind of semi-errors ("semi" because browsers can handle it).

regards

Peter
Attachments
wrong_link.zip
(25.86 KiB) Downloaded 22 times
PDF-X-Change Pro German

User avatar
Will - Tracker Supp
Site Admin
Posts: 6837
Joined: Mon Oct 15, 2012 9:21 pm
Location: London, UK
Contact:

Re: Handling of wrong formatted links

Post by Will - Tracker Supp » Thu Feb 11, 2016 7:29 pm

Hi Peter,

Thanks for the post - Can you send a screen-shot of what you're seeing? The two email addresses are not formatted as links at all, for me.

Cheers,
If posting files to this forum, you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded.
Thank you.

Best regards

Will Travaglini
Tracker Support (Europe)
Tracker Software Products Ltd.
http://www.tracker-software.com

Willy Van Nuffel
User
Posts: 1421
Joined: Wed Jan 18, 2006 12:10 pm

Re: Handling of wrong formatted links

Post by Willy Van Nuffel » Thu Feb 11, 2016 7:49 pm

I suppose the semi-handling of the URL in PDF-XChange Viewer is because it interpretes "office @ austrosteel.at" as a link, while it should not (do so).

At my opinion the problem is only due to the (one) spacing character before and the one after the ampersand.
When you remove these spaces, everything works like expected.

So, the correctly formatted e-mail address is "office@austrosteel.at".

Best regards.

User avatar
Will - Tracker Supp
Site Admin
Posts: 6837
Joined: Mon Oct 15, 2012 9:21 pm
Location: London, UK
Contact:

Re: Handling of wrong formatted links

Post by Will - Tracker Supp » Thu Feb 11, 2016 7:58 pm

Hi Willy,

Have just checked the Viewer here and it looks like it incorrectly recognizes the link. However, this would not be changed as the Viewer is no longer under active development.

Both the Editor and Adobe do not recognize this as a link and rightly so, as there are spaces between different parts of the link. Once these spaces are removed, the Editor and Adobe both handle these links correctly.

Cheers,
If posting files to this forum, you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded.
Thank you.

Best regards

Will Travaglini
Tracker Support (Europe)
Tracker Software Products Ltd.
http://www.tracker-software.com

Peter2
User
Posts: 846
Joined: Mon Sep 13, 2010 10:09 am
Location: Switzerland

Re: Handling of wrong formatted links

Post by Peter2 » Thu Feb 11, 2016 8:53 pm

What I wanted to say is that links like this - without http, without www - can happen sometimes. And although they are "wrong", the software could be a bit of fault-tolerant and suppose "this could be a http://www.... link".

Viewer nearly gets it (the first message shows that it realizes it as a link), Editor realizes nothing. So maybe this could be improved (at least with an informative dialogue instead of doing nothing).

Here is what I see (and I'm sure you see the same thing):
http://autode.sk/1Tf72hr

Peter
PDF-X-Change Pro German

User avatar
Will - Tracker Supp
Site Admin
Posts: 6837
Joined: Mon Oct 15, 2012 9:21 pm
Location: London, UK
Contact:

Re: Handling of wrong formatted links

Post by Will - Tracker Supp » Thu Feb 11, 2016 9:26 pm

Hi Peter,

As mentioned in my previous post, that is exactly what I see, but the Editor handles this correctly. This should not be recognized as a link, as recognition of links formatted in such a manner, will cause the Editor to incorrectly recognize other text as links.

i.e. system.out.prtln <-- That is a small snippet of some simple Java code. In instances such as that, it's extremely difficult, if not impossible, to programmatically differentiate between austrosteel.at and system.out.prtln.

Adobe does not recognize this link either and for the same reason. The only links that will and should automatically be parsed (provided the options to do so are enabled) are the following:

- Literal links (i.e. http://, https://, wwww., test@test.com, etc.).
- IP addresses (i.e. 192.111.1.01)

Thanks,
If posting files to this forum, you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded.
Thank you.

Best regards

Will Travaglini
Tracker Support (Europe)
Tracker Software Products Ltd.
http://www.tracker-software.com

Post Reply