Hello,
in my project documentation is important. I use QPrinter and QTextDocument to save the data into a pdf. Everything works fine so far (ok, not everything, I struggle with putting a watermark on every side, but that's not half as important as the question, I start this Thread about), except that I don't become internal links working.
I write HTML into a QByteArray and import that via setHtml into the QTextDocument (the style-stuff goes in via a separate QByteArray and setDefaultStyleSheet). Anchors are set with <a name='target'>, internal links are set with <a href='#target'>. Nothing special so far.
But in the pdf there are no internal links. The tooltip shows, that the path to the document is always preceding the '#target'. All links are external. Maybe that would be ok, but after the drive-letter the ':' seems to be corrupted. There is a narrow black block instead. The link simply doesn't work.
Is there a 'open Sesame' that I can use to get internal links working?
Thanks
MDCremer
Bookmarks