Copy link to clipboard
Copied
Hi Friends,
How can assign page range for place option in InDesign java script..
Thanks,
Divya.
Copy link to clipboard
Copied
Do you want to place PDF pages? You can set pdfPlacePreferences.
app.pdfPlacePreferences.pageNumber = pageNumber;
Sample code is below...
var tgt = app.activeDocument;
var fNm = File.openDialog("select PDF file");
var f = new File (fNm);
for(i=0;i<10;i++){
app.pdfPlacePreferences.pageNumber = i+1;
app.pdfPlacePreferences.pdfCrop = PDFCrop.CROP_MEDIA;
var rect = tgt.pages.rectangles.add();
rect.place(f);
rect.geometricBounds=[0,0,297,210];
rect.fit(FitOptions.CENTER_CONTENT);
}
Ten wrote.
Copy link to clipboard
Copied
Thanks a lot Friend.. its working fine...
Copy link to clipboard
Copied
So mark your question as anwered, then.