Paginating in livecode using rich text
Posted: Wed Aug 01, 2012 12:52 am
Hey livecoders,
My application allows users to copy richtext and paste it in the app to later be built into a pdf. In the app I'm storing the rich text in a variable using clipboardData["rtf"] and later calling that variable and placing it into a scrolling field. Right now the way I paginate is pretty jury-rigged but I count the amount of characters in the field and if the amount is larger than the field can accommodate then I put what is left over into the next field, and so on and so on. My problem is that I've upgraded the app to support richtext so I can no longer use this method anymore (because of indentation, bullets, underscores, etc).
My question is if anyone knows a more effective way to paginate my pages using rich text.
Thanks for taking the time to read my post and try to help me out!
My application allows users to copy richtext and paste it in the app to later be built into a pdf. In the app I'm storing the rich text in a variable using clipboardData["rtf"] and later calling that variable and placing it into a scrolling field. Right now the way I paginate is pretty jury-rigged but I count the amount of characters in the field and if the amount is larger than the field can accommodate then I put what is left over into the next field, and so on and so on. My problem is that I've upgraded the app to support richtext so I can no longer use this method anymore (because of indentation, bullets, underscores, etc).
My question is if anyone knows a more effective way to paginate my pages using rich text.
Thanks for taking the time to read my post and try to help me out!