-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
html formatted text boxes do not create links in pdf outputs #19117
Comments
Author Name: Regis Haubourg (@haubourg) Hi, cheers |
Author Name: Nyall Dawson (@nyalldawson)
|
Author Name: Patrick Valsecchi (Patrick Valsecchi) 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: Therefore we'll have to wait for the port to Qt5 to be done and we'll be able to close this issue. |
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Alain FERRATON (@FERRATON) it seems that the bug still exists in QGIS 3.3 master which uses Qt 5.9.2 |
Author Name: Giovanni Manghi (@gioman) Alain FERRATON wrote:
unfortunately I confirm.
if I create a text box in a composer and add a tag 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). if I create a text box in a composer and add a tag 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). |
5.12 and current master still have the same issue, QT 5.12.4. |
Not sure how it works on QGIS side but I'm able with pure PyQt to export a simple PDF with link using a From what I've seen so far, |
@ThomasG77 Have you done any more investigations, or is this the status to pick up? |
@signedav Did not have time to investigate more. After all, not a low level dev, difficult for me to go further. |
Some further analysis on this. The Qt printing API does not allow generating links through public API. What existing Qt classes use to deal with this:
A first proof of concept shows, that with Implementing this in QGIS should be possible.
Sample code that mixes
|
Unless I'm missing part of the intent of the author who filed this issue, this has been implemented in QGIS already. |
Not really except if I'm using an old QGIS version. See the project attachment (debug_export_pdf.zip). Export to pdf the layout (also attached Mise en page 1.pdf) and see that the content although blue does not behave as a link. You can click as much as you want when using the generated PDF with a PDF viewer: nothing happens or at least for me. |
What version you are using @ThomasG77 ? afaik it should work since 3.32 |
Don't ask... Too old 3.28 (not the latest of the serie). If it works on more recent versions and you can confirm, close as suggested by @nirvn (my error here if fixed but only in recent versions) |
Functionality implemented in 3.32: https://www.qgis.org/en/site/forusers/visualchangelog332/index.html#feature-hyperlink-support-for-html-enabled-label-exports |
Author Name: Giovanni Manghi (@gioman)
Original Redmine Issue: 10731
Redmine category:map_composer/printing
Not sure if this is a feature request or a bug,
if I create a text box in a composer and add a tag
link
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).
The text was updated successfully, but these errors were encountered: