http://www.newton-inc.com/dev/techinfo/qa/qa.htmprotoTXView text engine in Newton 2.1 OS. How can I get text, styles, pictures, etc. out of the object returned by protoTXView's Externalize method without either a) instantiating a protoTXView or b) digging in the data structure?protoTXView produces. The data structures in that object are not documented or supported. You may be tempted to do this anyway, since it looks as though the data structure is obvious. Don't, it isn't. ProtoTXView actually uses several different data formats depending on the complexity and storage destination for the data.protoTXView to get at the data. Here's one way: local textView := BuildContext( { _proto: protoTXView, viewBounds: SetBounds(0, 0, 0, 0), viewFlags: 0, ReorientToScreen: ROM_DefRotateFunc, }); textView:Open(); textView:Internalize(myExternalizedData);
You can now use all the protoTXView APIs to get the data from the textView object. Don't forget to clean up with textView:Close() when you're done.