Android Question wrap text

SoyEli

Active Member
Licensed User
Longtime User
Need a little help,

I'm using "pdfdocument" to save some text from a EditText to a pdf file, but when it prints to pdf it doesn't wrap the text, I unchecked the EditText single line .
I can't find anything where it explains how to do this.

Can someone help please.

Thank you,
 

SoyEli

Active Member
Licensed User
Longtime User
On the screen yes, but on the saved pdf document it doesn't wrap, it just prints one line.
 
Upvote 0

Computersmith64

Well-Known Member
Licensed User
Longtime User
Just looking at some pdf generation code in one of my apps (I wrote it a long time ago), the PdfDocument doesn't wrap. You need to measure the length of the text you're writing & break it up into lines yourself.

- Colin.
 
Upvote 0

SoyEli

Active Member
Licensed User
Longtime User
Computersmith64, Your right, that worked. I split it up into sections with substring2.

Thank you for the help!
 
Upvote 0
Top