I'm trying to export my open document on InDesign Server CS3 to pdf, but it isn't working.
I can open, make changes and save, but when it comes to exporting it gives an error:
"An exception occurred when executing a COM method.
The cause of this exception was that: AutomationException: 0x0 - The specified object does not support the desired export format. in 'C:\Program Files\Adobe\Adobe InDesign CS3 Server\InDesignServer.exe'."
Here is my code below. I've tried the export code for pdf with inverted comma's as well, no luck. All the sample scripts do it in this fashion, am I missing something?
Notice the first argument: the enumeration which specifies the file type and the fourth argument which is the name of an Adobe Pdf Preset. This particular preset should already be installed on your CS3 server. You cant export to a pdf without using an export preset.
Ooops, the line of code in my last post is actually for Indesign CS3 not Indesign Server CS3, but the server code should be almost the same. You need the Pdf Preset in any case and you should use the enumerator instead of 1952403524.