问题
Iam trying to pipe some text to a printer and i need to split the content to multiple pages. According to this there is the control character `f to insert a form feed, which should only affect the printed document.
Simplified, my code looks like this:
"Hello page 1`fThis should be on page 2" | lp
It does not matter if i directly print this way or use a PDF printer - the text appears in one single line on a single page.
All other control characters seem to work fine.
UPDATE: I was wrong, `t doesn't work either
来源:https://stackoverflow.com/questions/31455095/why-does-powershell-out-printer-ignore-f-new-page-in-text