DynaPDF Manual - Page 836

Previous Page 835   Index   Next Page 837

Function Reference
Page 836 of 839
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 der
daherkam, bat er ihn um ein Almosen. Er
dem Apostel einen und auch einen
Krieg zu Ende war, bekamen viele Soldaten
antwortete: "Lieber Bettelmann, was soll ich
Kreuzer. Der heilige Petrus bedankte sich
ihren Abschied. Nun bekam der Bruder
dir geben? Ich bin Soldat gewesen und habe
und ging weiter, setzte sich aber zum
Lustig auch seinen Abschied und sonst
meinen Abschied bekommen, und habe
dritten Mal in einer andern Gestalt als ein
nichts als ein kleines Laibchen Kommißbrot
sonst nichts als das kleine Kommißbrot und
Bettler an den Weg und sprach den Bruder
und vier Kreuzer an Geld; damit zog er
vier Kreuzer Geld, wenn das all ist, muß ich
Lustig an.
fort. Der heilige Petrus aber
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