Skip to main content
Known Participant
October 8, 2009
Question

ColumnCount setting not exporting?

  • October 8, 2009
  • 1 reply
  • 693 views

Hello,

exporting from textFlow, using a regular Text Layout Format would apparently export everything, except for changes that have been done during runtime on container Format.

Why are those changes not updated in the surrounding <TextFlow/> tag? Same holds true to firstBaselineOffset etc.

I am using regular export:

TextFilter.export(textFlow,TextFilter.TEXT_LAYOUT_FORMAT, ConversionType.XML_TYPE);

The TextFlow tag still contains columnCount=3 attribute, although it was changed during editing to columnCount=2.

<TextFlow paddingLeft="inherit" paddingRight="inherit" paddingTop="inherit" textAlign="left" verticalAlign="inherit" textAlpha="1" paragraphSpaceBefore="0" paragraphSpaceAfter="0" paragraphStartIndent="0" paragraphEndIndent="0" textDecoration="none" fontFamily="_sans" fontLookup="device" columnCount="3" firstBaselineOffset="ascent" lineBreak="inherit" fontSize="12" color="0x0" paddingBottom="inherit" whiteSpaceCollapse="preserve" xmlns="http://ns.adobe.com/textLayout/2008">

<p fontLookup="device">

<span fontLookup="device">Omnia Gallia est divisa in partes tres. Omnia Gallia est divisa in partes tres. Omnia Gallia est divisa in partes tres. Omnia Gallia est divisa in partes tres. Omnia Gallia est divisa in partes tres. Omnia Gallia est divisa in partes tres. Omnia Gallia est divisa in partes tres. Omnia Gallia est divisa in partes tres.</span>

</p>

</TextFlow>

When I run through the controllers of the textFlow Composer, the correct attributes can be found:

var numCont:Number = textFlow.flowComposer.numControllers;

for(var i:Number = 0;i<numCont;i++){

var controller:ContainerController = textFlow.flowComposer.getControllerAt(i);

trace(controller.columnCount); // -> 2

}


But it is hastle to read out all those attributes and change the settings in the TextFlow export. Can I trust this information to be the correct one? Is there a smarter way of exporting with all relevant attributes at once?

Thank you in advance,

Jo.

This topic has been closed for replies.

1 reply

Adobe Employee
October 9, 2009

ColumnCount (and columnWidth and gap) can be applied at the TextFlow level, but can also be applied to the controllers the text flows through. If the override is applied to the controller, than you won't see it in the markup, because the controllers aren't part of TLF markup. I'd suggest making the attribute change on the TextFlow instead of the controller in order to see it in the markup. This will work fine if you have only one controller. If you have multiple controllers, you already are needing some way to export them & reattach them to a container on import, and can handle the columnCount then.

Hope this helps,

- robin