Skip to main content
Inspiring
July 29, 2012
Question

Last text block not displaying correctly after XML import.

  • July 29, 2012
  • 1 reply
  • 797 views

Hi,

I have an .indd template (CS6) and script which imports XML and flows it into as many pages as it requires.

Occassionaly on the last page, the text doesn't display although it is all there and formatted correctly. Going in and out of preview mode doesn't change it.

If I click on the out port or resize the text box slightly, it displays and is fine from then on.

Any suggestions as to fixing it?

As always, many thanks in advance for any assistance.

Cheers,

Simon.

This topic has been closed for replies.

1 reply

Inspiring
July 30, 2012

Try story.recompose();

Jeff

AngusdogAuthor
Inspiring
July 30, 2012

Hi Jeff,

Thanks for that. I get 'story is undefined' - how do I defined the story (autoflowed text)?

Sorry for the newbie question - vascilating between various projects at the moment.

Cheers,

Simon.

Inspiring
July 30, 2012

You need a reference to the auto-flowed story. I don't know how that line should fit into the rest of your script. If you don't either, try:

app.activeDocument.recompose();

somewhere after the xml import.