Description: Relative paths to a subdir are not exported correct to a pdf. There happens a lot of unwanted and untested string conversion I think. Steps to Reproduce: Export relative path in PDF export dialog. Create directory "subdir" on "d:\". Use a working pdf as target. Copy the pdf to "D:\subdir\" Rename it to "file.pdf" Create a calc document in "D:\". Now we want a relative path to the pdf in the subdir. Case A: =HYPERLINK("subdir/file.pdf") Case B: =HYPERLINK("./subdir/file.pdf") Case C: =HYPERLINK("d:/subdir/file.pdf") Case D: =HYPERLINK("file:///d:/subdir/file.pdf") Actual Results: Case A: - working hyperlink in ODS * path is relative * leading to "subdir/file.pdf" - not working hyperlink in PDF * path is relative * leading to "file:///D:/./subdir%2Ffile.pdf" * a "./" is inserted Case B: - working hyperlink in ODS * path is relative * leading to "./subdir/file.pdf" - not working hyperlink in PDF * path is relative * leading to "file:///D:/./.%2Fsubdir%2Ffile.pdf" * an additional "./" is inserted Case C: - working hyperlink in ODS * path is absolute * leading to "d:/subdir/file.pdf" - not working hyperlink in PDF * path is relative * leading to "file:///D:/./d:%2Fsubdir%2Ffile.pdf" * a "D:/./" is inserted * I moved subdir and the pdf to "T:\" * now leading to "file:///T:/./d:%2Fsubdir%2Ffile.pdf" Case D: - working hyperlink in ODS * path is absolute * leading to "file:///d:/subdir/file.pdf" - working hyperlink in PDF * path is absolute * leading to "file:///d:/subdir/file.pdf" Expected Results: Case A and B should in any case lead to working relative path. Case C and D should in any case lead to working absolute path. Reproducible: Always User Profile Reset: No Additional Info: I used a workaround by computing the actual path. =HYPERLINK(CONCATENATE(REGEX(CELL("FILENAME");"file:///.+/");"subdir/file.pdf")) So I get a relative path to the pdf in both the ODS and in the exported PDF file. One small flaw in my workaround is because there is no celltext given in this example, it does change the linkaddress in the exported PDF, if I copy it to a new location, but not the celltext. A bigger problem for Mac users may be, that it does not work on a Mac, but I don't have a Mac for daily use to play around with.
Created attachment 172685 [details] Calc document with the test cases Calc document with the test cases.
No repro in Version: 7.3.0.0.alpha0+ / LibreOffice Community Build ID: 008f28c9e01114e731f785e9e238236a1ed069d2 CPU threads: 8; OS: Linux 5.4; UI render: default; VCL: gtk3 Locale: ru-RU (ru_RU.UTF-8); UI: en-US TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time: 2021-08-22_15:17:36 Calc: threaded
Cases A to C are working fine for me with Acrobat Reader and MS Edge. Which reader are you using? Do you still see the problem with the latest version? Version: 7.4.0.0.alpha1+ (x64) / LibreOffice Community Build ID: a353f633ec029fc5c7cdc8062aefb6f979265a9e CPU threads: 2; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win Locale: fi-FI (fi_FI); UI: en-US Calc: threaded Jumbo
Dear Norbert Scheibner, This bug has been in NEEDINFO status with no change for at least 6 months. Please provide the requested information as soon as possible and mark the bug as UNCONFIRMED. Due to regular bug tracker maintenance, if the bug is still in NEEDINFO status with no change in 30 days the QA team will close the bug as INSUFFICIENTDATA due to lack of needed information. For more information about our NEEDINFO policy please read the wiki located here: https://wiki.documentfoundation.org/QA/Bugzilla/Fields/Status/NEEDINFO If you have already provided the requested information, please mark the bug as UNCONFIRMED so that the QA team knows that the bug is ready to be confirmed. Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-NeedInfo-Ping
Dear Norbert Scheibner, Please read this message in its entirety before proceeding. Your bug report is being closed as INSUFFICIENTDATA due to inactivity and a lack of information which is needed in order to accurately reproduce and confirm the problem. We encourage you to retest your bug against the latest release. If the issue is still present in the latest stable release, we need the following information (please ignore any that you've already provided): a) Provide details of your system including your operating system and the latest version of LibreOffice that you have confirmed the bug to be present b) Provide easy to reproduce steps – the simpler the better c) Provide any test case(s) which will help us confirm the problem d) Provide screenshots of the problem if you think it might help e) Read all comments and provide any requested information Once all of this is done, please set the bug back to UNCONFIRMED and we will attempt to reproduce the issue. Please do not: a) respond via email b) update the version field in the bug or any of the other details on the top section of our bug tracker Warm Regards, QA Team MassPing-NeedInfo-FollowUp