Feature request #10731

html formatted text boxes do not create links in pdf outputs

Added by Giovanni Manghi about 6 years ago. Updated about 2 years ago.

Status:Open
Priority:Normal
Assignee:-
Category:Map Composer/Printing
Pull Request or Patch supplied:No Resolution:
Easy fix?:No Copied to github as #:19117

Description

Not sure if this is a feature request or a bug,

if I create a text box in a composer and add a tag

<a href="http://www.google.com/">link</a>

when outputting to PDF the link text is formatted as expected (blue, underlined), but the link does not work (maybe it does not exist as it is not clickable).

It does not depend on the platform (tested Linux and Windows) and also does not depend on how the PDF is created (the QGIS function or other virtual printer).

History

#1 Updated by Regis Haubourg about 6 years ago

Hi,
it seems there was a bug in QT 4.7 , solved in 4.8.. I guess we just have to wire that feature:
see [[http://stackoverflow.com/questions/24163671/wicked-pdf-export-html-links-as-plain-text]]

cheers
Régis

#2 Updated by Nyall Dawson almost 5 years ago

  • Assignee deleted (Nyall Dawson)

#3 Updated by Patrick Valsecchi over 4 years ago

I doubt this is a bug fixed in Qt 4.7. The link in the previous comment points to post about wicked, not Qt and QGIS uses Qt to render PDFs.

This bug has been fixed in Qt5.6:
https://github.com/qtproject/qtwebkit/commit/62dd2add32c7c4d5d409d457c818ac88c952e7f6

Therefore we'll have to wait for the port to Qt5 to be done and we'll be able to close this issue.

#4 Updated by Giovanni Manghi over 3 years ago

  • Easy fix? set to No

#5 Updated by Alain FERRATON about 2 years ago

it seems that the bug still exists in QGIS 3.3 master which uses Qt 5.9.2

#6 Updated by Giovanni Manghi about 2 years ago

  • Description updated (diff)

Alain FERRATON wrote:

it seems that the bug still exists in QGIS 3.3 master which uses Qt 5.9.2

unfortunately I confirm.

Also available in: Atom PDF