Including page nos. in .odt file with QTextDocument
Hello
I am using QTextdocument and QTextdocumentwriter to create .odt file. I want to include page nos. at the end of each page in .odt file. I saw people have done it with QPainter but then it is for .pdf files. I tried to use QPainter but it does not support .odt file format. Can anybody help me with some solution here?
Thanks,
Re: Including page nos. in .odt file with QTextDocument
Here is some code on github that supposedly allows insertion of headers and footers into a QTextDocument during printing. Maybe it will help. BTW, I googled "QTextDocument pagination" and this was the third hit. There are probably other solutions out there as well.