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

Internal links aren't preserved when exporting QTextDocument to PDF

XMLWordPrintable

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

      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.

        1. bug2.html
          0.2 kB
        2. internallink.pdf
          13 kB
        3. InternalLinks.pdf
          141 kB
        For Gerrit Dashboard: QTBUG-83458
        # Subject Branch Project Status CR V

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes