As you probably know, you can export images as JPEG from InDesign, using the exportFile method like: newImage.exportFile(format=ExportFormat.JPG , to=jpgFileName); You would probably have to know what size you want the new image to be. That might be your real issue here, but I'll post this as well: I had some problems with getting only a part of the image as the exported result. Perhaps you will run into the same problem. I found this comment in my code: // In CS4 latest desktop version the size of the container does not seem to matter for the export size taking place in the main code. // However, in CS3 and in CS4 Server there seems to be a bug, not exporting the whole image, but only a part of it. A bug unless there is some sort of setting, that differs between the versions. Setting the image container to an area large anough (or fitFrameToContent) seems to work well. I ended up with placing the full image on a new place, making sure that the image content is fitted within its container, exporting it, and then removing it from the document. var newImage = placeImage(newDoc, fullPathToOrigImage, pixelHeight); newImage.exportFile(format=ExportFormat.JPG , to=jpgFileName); function placeImage(doc, fileRef){ //, desiredHeight){ var desiredHeight = '100mm'; var desiredWidth = '100mm'; imageRect = doc.pages[0].rectangles.add(doc.layers.item(-1), undefined, undefined, {geometricBounds:[0, 0, desiredHeight, desiredWidth], strokeWeight:0, strokeColor:doc.swatches.item('None')}); var placedImage = imageRect.place(File(fileRef), false)[0]; // The following line is vital for (some) larger images, since they will be // cropped in CS3 and CS4 Server. (Probable bug). Works without setting the // containter size in CS4 desktop with latest version update. imageRect.fit(FitOptions.frameToContent); return placedImage; } (In vital code one would also have to make sure that the layer is not locked, or even create a new layer...) I hope this can be of some help. Best regards, Andreas
... View more