Posted by a ceTe Software moderator
Hello,
You can have different X, Y, Width and Height for the new TextArea page without any problem. You will have to create a new TextArea object when you have an overflow text. Below is a sample code for this.
Dim MyDocument As New DynamicPDF.Document
Dim MyText As String
MyText = "A Very Big String"
Dim MyPage As DynamicPDF.page
Dim MyTextArea As TextArea
Dim width As Single
Dim height As Single
Dim x As Single
Dim y As Single
Dim temp As Integer
temp = 1
Do
'Some logic to change X, Y width and height
If (temp Mod 2 = 0) Then
x = 0
y = 0
width = 200
height = 200
Else
x = 100
y = 100
height = 400
width = 300
End If
Set MyPage = MyDocument.AddPage()
Set MyTextArea = MyPage.AddTextArea(MyText, x, y, width, height)
MyText = MyTextArea.OverFlowText()
temp = temp + 1
Loop While Not (MyText = "")
MyDocument.DrawToFile ("C:\Temp\output.pdf")
Set MyPage = Nothing
Set MyDocument = Nothing
Thanks,
ceTe Software Support Team.