How to get started with the Scripting API
Copy link to clipboard
Copied
I've seen a number of "where did you ever find that" posts in the forums, and wonder if there is a roadmap to the definition of methods like exportFile(a,x). I'm sure it's documented somewhere, and I'll happily read a whole book, if I could only find the book!
Anyone know if there's a roadmap, or an API manual that includes exportFile? I have the javascript tools guide and a number of other downloads that sounded like they might be the right API, but no luck thus far!
--dave
Copy link to clipboard
Copied
You want the Adobe InDesign CS5 Scripting Guide .The last two sections of chapter 3 cover exporting.
Copy link to clipboard
Copied
Thanks, that's where I got started, and found just enough to whet my appetite (;-))
--dave
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Well, I didn't find a roadsmap, but I did find the equivalent of javadoc, staring with
http://cssdk.host.adobe.com/sdk/1.0/docs/WebHelp/references/csawlib/com/adobe/indesign/ExportFormat.html
--dave
Copy link to clipboard
Copied
Hmmm -- what programming language are you using? Your example, for example, is for Flash/Actionscript (?).
"The best" (according to Kasyan, in any case ) is geared to Javascript, and that's a good thing because Javascript is supported directly by InDesign. And it slightly depends on the software you are using to view it with, but with both Robin Lu's iChm (for Mac) and the standard Windows Help viewer (for, euh, Windows) I can do a free search on "export" and find this:
Enumeration | ExportFormat | ||||||||||||||||||||||||||||||||||||||||||||||||
Export format options. | |||||||||||||||||||||||||||||||||||||||||||||||||
Value |
|
Usage | In functionvoid Button.exportFile (format: {ExportFormat | String} , to: File[, showingOptions: bool=false][, using: PDFExportPreset][, versionComments: string][, forceSave: bool=false]) |
(dozens of similar lines omitted ...)

