Stefano,
You'll need to do the flowing yourself. I use the function below for that. It keeps adding pages and text frames, linking each new text frame to the previous thread, as long as the last added text frame overflows. It may not work for you as it is, but it gets you going.
Peter
flow (app.activeDocument)
function flow (doc)
{
var m = doc.pages[0].marginPreferences;
var gbounds = [m.top, m.left,
doc.documentPreferences.pageHeight - m.bottom,
doc.documentPreferences.pageWidth - m.right];
doc.viewPreferences.rulerOrigin = RulerOrigin.pageOrigin;
while (doc.pages[-1].textFrames[0].overflows)
{
var tf = doc.pages.add().textFrames.add ({geometricBounds: gbounds});
tf.previousTextFrame = doc.pages[-2].textFrames[0];
}
}
... View more