Dynapdf.WriteFText problem

I was looking for way to send a large amount of text to a PDF file and wrap it automatically.
The call is

call pdf.WriteFText(pdf.ktaLeft, text)

However, only the first page is left aligned.
All subsequent pages are right aligned.

Is there a fix?

What do you return from the event?

Event?

This is the create PDF with Page Wrap sample project from the DynaPDF samples

[code]dim pdf as new MyDynapdfMBS
dim d as new date
dim text as string
dim height as double

pdf.SetLicenseKey “Starter” // For this example you can use a Starter, Lite, Pro or Enterprise License

dim f as FolderItem=SpecialFolder.Desktop.Child(“Create PDF with page wrap.pdf”)

call pdf.CreateNewPDF f
call pdf.SetViewerPreferences pdf.kvpDisplayDocTitle,pdf.kavNone
call pdf.SetDocInfo pdf.kdiAuthor, “Christian Schmitz”
call pdf.SetDocInfo pdf.kdiSubject, “My first Realbasic output”
call pdf.SetDocInfo pdf.kdiProducer, “Realbasic test application”
call pdf.SetDocInfo pdf.kdiTitle, “My first Realbasic output”

// We want to use top-down coordinates
call pdf.SetPageCoords pdf.kpcTopDown

call pdf.Append

text=MainWindow.Edit.text

call pdf.SetFont “Times”, pdf.kfsItalic, 20.0, true, pdf.kcp1252
call pdf.WriteFText(pdf.ktaLeft, text)

call pdf.EndPage

call pdf.CloseFile

f.Launch
[/code]

The pageBreak event in MyDynapdfMBS, please.

Thank you .
I had no idea that existed.
It was set to ALIGN_RIGHT in the sample project.