Bug 64428 - Hyperlink with spaces in pdf exports
Summary: Hyperlink with spaces in pdf exports
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Printing and PDF export (show other bugs)
Version:
(earliest affected)
4.0.3.3 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-10 12:17 UTC by Carlo Strata
Modified: 2013-11-21 13:26 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments
Writer document with the links (9.56 KB, application/vnd.oasis.opendocument.text)
2013-05-10 12:17 UTC, Carlo Strata
Details
pdf export explaining the tissue (LibreOffice 4.0.3.3) (25.18 KB, application/pdf)
2013-05-10 12:18 UTC, Carlo Strata
Details
pdf export explaining the tissue (LibreOffice 4.0.1.2) (24.30 KB, application/pdf)
2013-05-10 12:18 UTC, Carlo Strata
Details
Comment 4, 1st of 2 attachments (11.14 KB, application/vnd.oasis.opendocument.text)
2013-05-12 17:01 UTC, Carlo Strata
Details
Comment 4, 2nd of 2 attachments (26.30 KB, application/pdf)
2013-05-12 17:02 UTC, Carlo Strata
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Carlo Strata 2013-05-10 12:17:09 UTC
Created attachment 79094 [details]
Writer document with the links

Hi Everyone,

Environment:
- LibreOffice 4.0.3.3, Win32 build, ita GUIed;
- Windows 8, 64 bit, ita GUIed;
- Adobe Acrobat Reader, XI, 11.0.2, Win32, ita GUIed.

Since 4.x versions - but maybe since before:

1. if you create a new writer document and copy in it a with-space-link
like this (directly from here or through the browser no matter):
http://support.mozilla.org/it/kb/Informazioni%20su%20Firefox%20Sync
2. save the document;
3. export the document in pdf with the default settings;
4. open the exported pdf;
5. click on the clickable link;
6. you will get this wrong link instead:
http://support.mozilla.org/it/kb/Informazioni%2520su%2520Firefox%2520Sync
7. if you open that link from the odt (as usual with a ctrl+click) you will
get instead the right link and the browser open correctly!
8. if you leave your mouse cursor on the link both on the pdf and the
odt documents you will get a correct title yellow lable ("tooltip") too!
9. I finally think there is a bug on the pdf export module.
10. This is the same if you create the above document with the Insert ->
Hypertext link menu function.

I, also, think that:
- on URLs, browsers - but maybe a behaviour stated on  a well determined W3 Standard or similar open Consortium - substitute spaces with %20 hex character code;
- %20 (!!!): that means that "%", "2" and "0" are all (!) well admitted characters, all (!!!);
- so I don't see the reason to recursively (!!!) substitute the "%" character when an URL is input in LibreOffice because "%" it self is already an accepted one;
- another low probability hypotheses in my head was that LibreOffice translate the space on a full 16 bit space character coding, but your explain about %25 representing the "%" hex code, rapidly make me clear what was happened;
- in any case (!), if you open the with-space link directly from a Writer document (ctrl+click for friends o chaps )  you will get the right page: in other words the link behave correctly! So the problem on pdf link behaviour has to be fixed in LibreOffice too!!! But I do not think is a too hard to do, is not it?

I finally had searched if there was a related issue yet, I had found this one that may concern, but I am not so sure: Issue 63229, "Hyperlink in PDF".

So I decide to post a new one.

I have tested this on each new testing release, but only in these days I have
found the mental time to write this issue. :-)

Have a sunny day,

Carlo

p.s. The discussion performed before opening this issue maybe found here:
http://nabble.documentfoundation.org/4-0-3-3-non-fixed-bug-Link-with-a-space-Pdf-export-error-20-characters-space-ones-exported-as-2520-o-td4054826.html
Comment 1 Carlo Strata 2013-05-10 12:18:13 UTC
Created attachment 79095 [details]
pdf export explaining the tissue (LibreOffice 4.0.3.3)
Comment 2 Carlo Strata 2013-05-10 12:18:45 UTC
Created attachment 79096 [details]
pdf export explaining the tissue (LibreOffice 4.0.1.2)
Comment 3 Andras Timar 2013-05-10 12:47:29 UTC
This "bug" has been probably there since the beginning. Note, that not all PDF viewers are affected. Adobe Reader is, but the link works fine in Evince and in Firefox's built-in PDF viewer. So, it may be an Adobe Reader bug after all, because you have a valid URI in PDF, http://support.mozilla.org/it/kb/Informazioni%20su%20Firefox%20Sync, yet Abobe Reader wants to be smart, it thinks it is not valid, and escapes the % once more.

It would make sense to try, if LibreOffice could export unescaped URLs. For example "http://support.mozilla.org/it/kb/Informazioni su Firefox Sync". Would they work in all scenarios?
Comment 4 Carlo Strata 2013-05-12 16:51:48 UTC
Hi Andras,

you are fine! ;-)

It seems clearly a Adobe Acrobat Reader 11.0.2 bug: is there a place where to post a Adobe Reader's bug/issue?

I also test the pdf with:
- Pdf Architect 1.1.83.9982, Win32 (from PDFCreator developer if I remember correctly...);
- Windows 8 built in pdf viewer;
and I got the right/correct behavior!!!

I was curios too to test the unescaped link (pure spaces).

If there are some unescaped spaces LibreOffice doesn’t automatically understand the link…
http://support.mozilla.org/it/kb/Informazioni su Firefox Sync

… so I create it with the menu (Insert → Hypertext link, or similar in english)
link text but, in any case as you will see, LibreOffice escapes the spaces…

So Acrobat fails once more... ;-)

Have a nice evening,

Carlo
Comment 5 Carlo Strata 2013-05-12 17:01:28 UTC
Created attachment 79201 [details]
Comment 4, 1st of 2 attachments
Comment 6 Carlo Strata 2013-05-12 17:02:19 UTC
Created attachment 79202 [details]
Comment 4, 2nd of 2 attachments
Comment 7 Carlo Strata 2013-05-12 17:05:23 UTC
... so I think this definitively an Adobe Acrobat Reader 11.0.2 bug/issue and I close this LibreOffice bug as "Not a bug" one.

Carlo
Comment 8 Carlo Strata 2013-05-12 18:03:37 UTC
I have just posted a bug here:
https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform

;-)
Comment 9 Carlo Strata 2013-05-15 15:00:36 UTC
Hi Everyone,

the just released 11.0.3 Adobe Acrobat Reader patch has resolved the bug (I have just tested a files of ours):
http://www.adobe.com/devnet-docs/acrobatetk/tools/ReleaseNotes/11/11.0.03.html

[OT] These remain the knows Adobe Acrobat issues:
http://helpx.adobe.com/acrobat/kb/known-issues-acrobat-xi-reader.html

Have All a sunny day,

Carlo