Place all Microsoft Word pages in the .indd document
Hello.
I need to place all word's document pages into one indd document.
For now the following code placing only the first page:
var myDocument = app.documents.add();
myDocument.viewPreferences.horizontalMeasurementUnits = MeasurementUnits.points;
myDocument.viewPreferences.verticalMeasurementUnits = MeasurementUnits.points;
var myX = myDocument.pages.item(0).marginPreferences.left;
var myY = myDocument.pages.item(0).marginPreferences.top;
myDocument.pages.add();
var myStory = myDocument.pages[0].place(File("C:/js/klb.doc"),[myX, myY],undefined,false,true);
var pcount = myStory.length;
//var myPDFExportPreset = app.pdfExportPresets.item("prepress");
myDocument.exportFile(ExportFormat.pdfType,File("C:/js/HelloWorld.pdf"));
app.documents.item(0).close();
place() method returns an array with only one item - so i can not iteraqte over the pages.
Could you please give an advice how to map each .doc page into separate .indd page?
Thanks.
-Alex.