Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QWebEnginePage printToPdf footer
M.Cocktail last edited by M.Cocktail
I'm using QWebEnginePage whit setHtml et printToPdf to create a new PDF. I want to add page number like (page # of #) on each page. How can i do that ?
Any update on this topic. I am also interested in adding a footer to the pdf. Can it be done?
artwaw last edited by
MajidKamali last edited by
This is more of a
cssissue and actually it's very hard to achieve
@artwaw thanks for the tip, looks like QTextDocument only supports a subset of html and css features. I did a quick sample using QPdfWriter & QTextDocument but it could not render the html file properly due to un-supported css tags.
@MajidKamali Did you try this approach and had it worked? I tried page counters but could not get it working. Please let me know if you have any sample or example. Thanks!
JonB last edited by