Hello there!
I'm using jpdfjet to generate a pdf document from a web server.
I noticed that when I'm drawing a pdf line with a string as input, it doesn't take care of the lenght of the strings, and that result in a very awful pdf :\
This is the way I'm drawing the line:
Variable $nota is a string created from an html input text:
It can be infinite long and can contain multiple break lines (wich would be cool to track in order to re-write the string as the user initially intended).
How can I automatically draw more lines when the string lenght is over a certain value? I should be able to tell how many lines are needed given the length of the string, I guess...any suggestion?
I'm using jpdfjet to generate a pdf document from a web server.
I noticed that when I'm drawing a pdf line with a string as input, it doesn't take care of the lenght of the strings, and that result in a very awful pdf :\
This is the way I'm drawing the line:
B4X:
pdfLine2.SetFont(HelveticaItalic14)
pdfLine2.SetPosition(15, 15+pdfLine2.GetDestinationY+HelveticaItalic14.GetHeight)
pdfLine2.SetText($"«${nota}»"$)
pdfLine2.DrawOn(PDFPage)
Variable $nota is a string created from an html input text:
B4X:
Dim f As Future = txtNota.GetVal
nota = f.Value
How can I automatically draw more lines when the string lenght is over a certain value? I should be able to tell how many lines are needed given the length of the string, I guess...any suggestion?