Good morning,
I would like to retrieve the text content of a TextEdit, to divide it into several parts and then display this content in a pdf the size of an A4 sheet. Here is the code I'm trying to use but it doesn't work and frankly I don't know how to do it. Thank you in advance for your help.
I would like to retrieve the text content of a TextEdit, to divide it into several parts and then display this content in a pdf the size of an A4 sheet. Here is the code I'm trying to use but it doesn't work and frankly I don't know how to do it. Thank you in advance for your help.
Code:
' Récupérer le texte du TextEdit
Dim text As String = ACEditText1.Text
' Diviser le texte en utilisant la regex "\s{10}"
Dim lines() As String = Regex.Split("\s{10}", text)
pdf.Canvas.DrawText(lines, 300, 220, Typeface.DEFAULT, 14 / GetDeviceLayoutValues.Scale, Colors.Black, "CENTER")