Method XbpPrinter():newPage() Foundation
Indicates a page break.
:newPage() --> self
This method returns the object executing the method (self).
The method :newPage() inserts a page break. This method can only be executed between the calls :startDoc() and :endDoc(). Calling :newPage() implicitly ends spooling of the current page and issues an eject command. Furthermore, a new page is added to the print job and subsequent printer output from graphical primitives is sent to the newly created page.
The :newPage() method is similar to using :endPage()followed by a call to :startPage(). However, changing attributes of the current print job such as the page orientation, is not possible using :newPage(). See method :startPage() method for further information on changing print job attributes.
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.