Open the document in Indesign cs5.5 server

Hi guys!

I have a problem when opening documents in CS5.5, I upgraded our Indesign server CS3 CS5.5 and using the indesignserver api for Java.

I'm under Jboss, J2EE, CORBA, and CS5.5 with 8 instances.

When I open multiple documents *.indt I get "Please close one or more documents Adobe InDesign Server or books or libraries and try again." It seams that Indesign server is locked

the file. If I did not load the indesign has no problem. I read the new API and I open the document with:

com.Adobe.IDs.basics. ApplicationOperations. Open Throws (VariableType , OptOpenOptionsEnum openOption) IdsException

My code:


VariableType vtDocument = application.open (VariableTypeUtils.createFile (documentFileName), OptArg.noOpenOptionsEnum ());

Document document = DocumentHelper.narrow (vtDocument.asObject ());

I don't really know what are the OptOpenOptionsEnums available and sending in no option, I think that the problem is here, because in CS3

I don't have to send the OpenOptionsEnum to the open method.

What kind of OptOpenOptionsEnums is there to choose?

Anyone get the same problem? solutions?


I found a solution!

I looked at the Javascript api for the OptIOpenOptionsEnum and took the number enums and created new OptOptionOptionsEnum in java:

OptOpenOptionsEnum open_copy = OptArg.makeOpenOptionsEnum (1332757360);

OptOpenOptionsEnum open_original = OptArg.makeOpenOptionsEnum (1332760343);

OptOpenOptionsEnum open_default = OptArg.makeOpenOptionsEnum (1147563124);

And then simply send in one of the OpenOption which fits your needs as the second argument to the open method, as follows:

VariableType vtDocument = application.open (VariableTypeUtils.createFile (documentFileName), open_default);

Tags: InDesign

Similar Questions

Maybe you are looking for