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
          Joshua Grauman
        2. InternalLinks.pdf
          141 kB
          Joshua Grauman
        3. internallink.pdf
          13 kB
          Joshua Grauman
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            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