Configure page break preview

Refer to the following example code to see how to configure the page break preview.