Why does Powershell Out-Printer ignore `f (new page) in text?

我们两清 提交于 2020-01-16 00:56:11

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!