There are several questions:
- How to programmatically disable headers and footers? (so that the printed pages do not display the page address, date, number, etc.)
- How to programmatically print printable text? (several documents of different information are loaded into the document. For example, if the first document occupies one and a half A4 pages, the document following it should be printed from a new page).