Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-83458

Internal links aren't preserved when exporting QTextDocument to PDF

    XMLWordPrintable

Details

    • All
    • 5d95205bae (qt/qtbase/dev) 5d95205bae (qt/tqtc-qtbase/dev)

    Description

      A QTextDocument supports internal linking, for example by inserting the following html:

       

      <a name="top">Top of Document</a>
      other html...
      <a href="#top">link to top</a>
      

       

      But when exporting QTextDocument to PDF, internal linking doesn't work in the resultant PDF (external links work properly when exporting to PDF). 

      It would also be nice if Qt supported span id's for exporting to PDFs (it appears to with QTextDocument). Ie.

      <span id="top"></span>

      Giuseppe D'Angelo of KDAB confirmed that this is a bug and that the code doesn't handle it.

      Attachments

        1. InternalLinks.pdf
          141 kB
        2. internallink.pdf
          13 kB
        3. bug2.html
          0.2 kB

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              vgt Eirik Aavitsland
              jgrauman Joshua Grauman
              Votes:
              2 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes