Skip navigation
Currently Being Moderated

Can we export user styles to xml?

Mar 26, 2012 8:03 AM

Tags: #export #tlf #textconverter #userstyles

Hi,

 

I have set the user styles of a selected portion of a textflow  as following:

 

 


tlf.setStyle("template",obj.template);









tlf.setStyle("fontThemeBox",colorDropDown.selectedIndex);

 

I am able to get these properties through out my application but when I try to export it they are missing?

 

This is how I was trying to Export.

 

TextConverter.export(textFlow, TextConverter.TEXT_LAYOUT_FORMAT, ConversionType.XML_TYPE) as XML;

 

Am I missing something here??

 
Replies
  • Currently Being Moderated
    Mar 26, 2012 10:09 PM   in reply to asharazeem

    Number value is not supported for style. Please parse it as String.

     

    Have a look at tlf_internal function createStylesFromDescription and override function exportFlowElement in TextLayoutExporter.as. Then you will know why your properties are missing.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points