Bug 167993 - Hyperlinks with non-URL text inside frames inside linked sections don't export to PDF
Summary: Hyperlinks with non-URL text inside frames inside linked sections don't expor...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, filter:pdf, regression
Depends on:
Blocks: Frame-Dialog PDF-Export Hyperlink Section
  Show dependency treegraph
 
Reported: 2025-08-17 19:40 UTC by Mike Kaganski
Modified: 2025-08-24 06:57 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
A "master" document (ODT) with a section linked to another ODT (8.08 KB, application/vnd.oasis.opendocument.text)
2025-08-17 19:40 UTC, Mike Kaganski
Details
The "nested" document used in the linked frame (7.88 KB, application/vnd.oasis.opendocument.text)
2025-08-17 19:40 UTC, Mike Kaganski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Kaganski 2025-08-17 19:40:12 UTC
Created attachment 202368 [details]
A "master" document (ODT) with a section linked to another ODT

Ref: https://ask.libreoffice.org/t/pdf-exported-hyperlinks-from-sub-documents/125425

Open the attachment. It has a section, that is linked to another ODT. The document shown in the section, in turn, has a frame. Inside that frame, there are two hyperlinks, both pointing to www.libreoffice.org; but the first one has a text (not the URL) in the hyperlink section, while the second simply shows its URL.

When exported to PDF (e.g., using toolbar button, or File->Export As->PDF), the first hyperlink exports as text, not a hyperlink anymore; while the second exports OK.

For comparison, the same two hyperlinks are also present outside of the frame. They both export OK.

There is an interesting detail visible when opening the resulting PDF in Adobe Acrobat Reader (but not e.g. in Chrome and FF built-in PDF viewers): hovering over the two hyperlinks outside (below) the frame produces a "hand with pointing finger" cursor, which has a small letter "w" over it. Hovering over the hyperlink in the frame, that got exported as hyperlink, the cursor is also a "hand with pointing finger", but without the "w".

When opening the linked document itself, a PDF produced from it has all hyperlinks OK. The detail mentioned above about Acrobat Reader is absent in this case: all four hyperlinks have the "w".

This is a regression in 24.2; it was OK in 7.6. And again, in this case the detail noted about Acrobat Reader is absent: all four hyperlinks have the "w".
Comment 1 Mike Kaganski 2025-08-17 19:40:43 UTC
Created attachment 202369 [details]
The "nested" document used in the linked frame
Comment 2 m_a_riosv 2025-08-17 22:48:55 UTC
Reproducible with
Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 7f4868348c14b305fcd75744e1e3544d0d3a5d61
CPU threads: 16; OS: Windows 11 X86_64 (build 26100); UI render: Skia/Raster; VCL: win
Locale: es-ES (es_ES); UI: en-US
Calc: CL threaded
Comment 3 Saburo 2025-08-18 02:57:59 UTC
bibisected with linux-64-24.2
 38d53851e3f9b8139da85b18e11840a2f7bb2532 is the first bad commit
commit 38d53851e3f9b8139da85b18e11840a2f7bb2532
Author: Jenkins Build User <tdf@maggie.tdf>
Date:   Thu Nov 2 10:52:19 2023 +0100

    source a1b0fc647d14dc36e9fe238d5bfc81ebcfa1d5dc
    
    source a1b0fc647d14dc36e9fe238d5bfc81ebcfa1d5dc
    source 5726be1314517d47dd733aabe64a3d85cce094c5

 instdir/program/libswlo.so | Bin 25972400 -> 25972336 bytes
 instdir/program/setuprc    |   2 +-
 instdir/program/versionrc  |   2 +-
 3 files changed, 2 insertions(+), 2 deletions(-)

***
commit 5726be1314517d47dd733aabe64a3d85cce094c5
author	Michael Stahl <michael.stahl@allotropia.de>	Fri Oct 27 19:45:09 2023 +0200

tdf#157816 sw: PDF export: filter out links on empty space, INetAttrs