Sample 09#

The example prints a paragraph of text 20 times each followed by a 2mm distance before the next paragraph. A page break is needed at about paragraph number 13 and the text of this paragraph will be split to the next page.

After the 20 text paragraphs a manual page break is inserted and then a paragraph of text. The format of the page has not been changed, so it is still A4 in portrait mode.

After the last text a manually added page break has been inserted. The orientation has been changed to landscape and the left and right margins are set to 30mm, the top margin is set to 20mm. This settings will be used from this page on until one other format is set again.

With the current format the example prints a paragraph of text 10 times, so that a page break is needed. The text of paragraph number 10 will be split to the next page. The next page uses the same settings.

Then a manual page break is added. The format is now A5 in landscape mode with default margins. To show that a text paragraph is added.

Now the format is set to A5 in portrait mode with another manually added page break. The left and right margins will be mirrored. To show that effect, a text will be printed 10 times to force an automatic page break

sample_09()[source]#

Automatic and manual page breaks and changes of the page formats and margins

Output Sample 09#

Click here to see the output of sample 09