Skip to main content
March 26, 2012
Answered

Can we export user styles to xml?

  • March 26, 2012
  • 1 reply
  • 2847 views

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??

This topic has been closed for replies.
Correct answer Jin-Huang

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.

1 reply

Jin-HuangCorrect answer
Adobe Employee
March 27, 2012

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.

March 27, 2012

Thanks a lot Jin

Yes parsing it as String solved my problem