Skip to main content
October 17, 2011
Answered

Open document in Indesign server cs5.5

  • October 17, 2011
  • 2 replies
  • 1409 views

Hi Guys!

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

I am running Jboss, J2EE, CORBA and CS5.5 with 8 instances.

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

the file. If i dont have heavy load the indesign has no problem. I read the new API and I am opening the document with:

com.adobe.ids.basics.ApplicationOperations.open(VariableType from, OptOpenOptionsEnum openOption) throws IdsException

My code:


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

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

I really dont know what OptOpenOptionsEnums are available and sending in no options, I think the problem is here, because in CS3

I did not need to send the OpenOptionsEnum in open method.

What kinds of OptOpenOptionsEnums is there to choose from ?

Anyone get the same problem? solutions ?


This topic has been closed for replies.
Correct answer

I found a solution!

I looked up the Javascript api for the OptIOpenOptionsEnum, and took the enums number 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 just send in one of the OpenOption that fits your needs as the second argument to open method, like this:

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

2 replies

Correct answer
October 21, 2011

I found a solution!

I looked up the Javascript api for the OptIOpenOptionsEnum, and took the enums number 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 just send in one of the OpenOption that fits your needs as the second argument to open method, like this:

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

Participating Frequently
October 20, 2011

I am having the same problem with indesign server cs5. When I try to open a document i get this error:

Please close one or more Adobe InDesign Server documents or books or libraries and try again.

??