tags:

views:

250

answers:

3
+1  Q: 

Indesign to JPG

Hi I need to save every page of a Indesign CS3 and Quark file as JPEG , in my cocoa application using Objective C...

can anyone suggest me on this?

thank you

A: 

Isn't that just File > Export, and then select Jpeg?

Skunk
Sorry .. I need to do it programatically using Objective C..
+1  A: 

This sounds like a task for Applescript. You could write an applescript that uses the Indesign Applescript Dictionary and then wrap your applescript with Cocoa and Objective C.

Indesign and Applescript

Cocoa to Applescript bridge

Not sure how to do Cocoa wrapper around applescript? There are some code examples in the developer tools code samples that come with Xcode.

This might be useful AppleScript and Cocoa: from Top to Bottom.

Gordon Potter
Thank you so much .. I will try that...
A: 

Here is the Indesign (CS3) Applescript Guide (pdf). It would have the details of what actions can be scripted.

Also, you might consider Automator which is essentially a GUI frontend to Applescript. Here some Automator actions specifically for Indesign.

And a workflow guide from Adobe using Automator and Indesign. It has some information on what to do in Xcode.

Gordon Potter