Skip navigation
Currently Being Moderated

Last text block not displaying correctly after XML import.

Jul 29, 2012 3:49 PM

Tags: #script #text #import #extendscript #cs6 #automation

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.

 
Replies
  • Currently Being Moderated
    Jul 30, 2012 7:58 AM   in reply to Angusdog

    Try story.recompose();

     

    Jeff

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 30, 2012 2:25 PM   in reply to Angusdog

    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.

     
    |
    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