DynaPDF Manual - Page 871
Previous Page 870 Index Next Page 872

Function Reference
Page 871 of 874
The output of the previous example could look like this:
Bruder Lustig
hatte sich als ein armer Bettler an den Weg
Doch geben will ich dir was." Darauf teilte
gesetzt, und wie der Bruder Lustig
er den Laib in vier Teile und gab davon
Es war einmal ein großer Krieg, und als
daherkam, bat er ihn um ein Almosen. Er
dem Apostel einen und auch einen
der Krieg zu Ende war, bekamen viele
antwortete: "Lieber Bettelmann, was soll
Kreuzer. Der heilige Petrus bedankte sich
Soldaten ihren Abschied. Nun bekam der
ich dir geben? Ich bin Soldat gewesen und
und ging weiter, setzte sich aber zum
Bruder Lustig auch seinen Abschied und
habe meinen Abschied bekommen, und
dritten Mal in einer andern Gestalt als ein
sonst nichts als ein kleines Laibchen
habe sonst nichts als das kleine
Bettler an den Weg und sprach den Bruder
Kommißbrot und vier Kreuzer an Geld;
Kommißbrot und vier Kreuzer Geld, wenn
Lustig an.
damit zog er fort. Der heilige Petrus aber
das all ist, muß ich betteln, so gut wie du.
As you can see, the first column is left aligned, the second is justified and the third is right aligned.
By using manual page breaks it is possible to get full control over the formatting algorithm.
The parameter PageBreak of the callback is set to true if a page break tag was found, otherwise it is
always false. Because of this, it is possible to distinguish between a manual page break and a page
break that occurred due to a filled rectangle.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
Previous topic: How to create multi-column text?
Next topic: WriteFTextEx, WriteText