-
1. Re: Export selected items on each page in InDesign to JPEG
Mi_D Dec 11, 2013 7:53 PM (in response to Ramjivk)export all image of each page try like this
var myDoc = app.activeDocument;
var myFolder = myDoc.filePath;
var myImage = myDoc.allGraphics;
for (var i=0; myImage.length>i; i++){
app.select(myImage[i]);
var MyImageNmae = myImage[i].itemLink.name;
app.jpegExportPreferences.jpegQuality = JPEGOptionsQuality.high;
app.jpegExportPreferences.exportResolution = 300;
app.selection[0].exportFile(ExportFormat.JPG, File(myFolder+"/"+MyImageNmae+".JPEG"), false);
alert(myImage[i].itemLink.name)
}
-
2. Re: Export selected items on each page in InDesign to JPEG
Ramjivk Dec 11, 2013 9:11 PM (in response to Mi_D)Hi Mi_D.
Thanks for the script. i used the script it exports all the image as JPEG.
But, I have a document more than 50 page and each page has image and some text with descriptions (optional for some images). I want to export the image along with the texts. can you please help how to do that?
thanks.
-
3. Re: Export selected items on each page in InDesign to JPEG
Mi_D Dec 11, 2013 9:23 PM (in response to Ramjivk)Hi Ramjivk,
just i went to know that all test frame or only image description text frame and one more thing image and description text are in group
Mi_D
-
4. Re: Export selected items on each page in InDesign to JPEG
Ramjivk Dec 11, 2013 9:51 PM (in response to Mi_D)Hi Mi_D,
Thank you so much for your quick response.
I need all the text frames along with the images. the image and the frames are not grouped. all are individual objects.
thanks.
-
5. Re: Export selected items on each page in InDesign to JPEG
Laubender Dec 12, 2013 11:22 AM (in response to Ramjivk)@Ramjivk – So you'll need something like a logical or geometrical relation first to identify the container object of the image to the right text frame that holds the description. We do not know your specifics here, so it seems impossible at that stage to make suggestions.
It could be the contents of the text frame that has a special relationship to some EXIF data inside the image for instance…
Uwe
-
6. Re: Export selected items on each page in InDesign to JPEG
Laubender Dec 12, 2013 11:56 AM (in response to Laubender)Or you could use some heuristics like: the length of a caption is never more than 1,000 characters, it always resides in one single text frame, always using font named "x", geometrically never far away from the image container…
We simply cannot know.
Uwe


