Printing PDF with Headers & Footers
-
Hi everybody,
I'm using a QTextDocument to print a PDF file via QPdfWriter. I wanted to know if there is a way to attach headers and footers to pages when printing the PDF?
Thanks.
-
Hi,
AFAIK, you should do it as part of your document generation before sending to the printer.
-
Hi,
Thanks. But I haven't find any method in QTextDocument to do that. Do you have to put custom blocks into the document for each page? And if so, how do you make sure the footer stick to the bottom of the page?
Thanks for your help.
-
You can find an example of this in the "Advanced Qt Programming: Creating Great Software with C++ and Qt 4" book code samples.
2/4