I’m afraid it’s a silly question, but I don’t know the answer.
When printing from a notebook via several Print[…] functions, how can one force a page break, i.e. a new page within the printed form of the notebook, e.g. after: Save as …pdf.
I know of course the Cell options PageBreakAbove and the like. These can be used to create a notebook with page breaks, but not within the notebook itself.
I don’t know why I didn’t try CellPrint. I thought it would be inserted directly under the evaluated cell, i.e. at the very beginning of all outputs and not in the correct order of print or other outputs.
Hence I use:
Print["Start"];
Print["1 of 2 lines\n2 of 2 lines"];
Echo["Now a pagebreak:"];
CellPrint[Cell["", "PageBreak"]];
Print["This line shall be on a new page"];
Print["End"];