Quantcast
Channel: Adobe Community : Popular Discussions - InDesign Server Developers
Viewing all 20709 articles
Browse latest View live

load javascript function into global scope

$
0
0

Hello forum,

 

i send a lot of different scripts to IDS, but they often need to use the same functions i wrote. Is there a way to define such functions once, and to use them within subsequent scripts, without sending the function within that new script. As my scripts grow, it would be great if i don't had  to put all needed functions in that scripts and send the whole stuff with every request. The only way i see is to use evalFile, but is that a faster and better alternative?

 

greets

 

Michael


Indesign Server CS4 service is not starting on Windows Server 2003 64bit

$
0
0

Hello guys,

 

I am not able to start Indesign Server CS4 service on windows Server 2003 SP2 64bit .

I have successfuly configured the service with InDesignServerService.msc, set the port to 18555. InDesignServerWinService the Log On option is set to "This Account". Also tried using different accounts!

 

When starting the indesign service from windows Service control panel I get this error:

Could not start the InDesignServerService x64 service on Local Computer.
Error 1053: The service did not respond to the start or control request in a timely fashion.

 

Error log from windows Event viewer:
Error
Timeout (30000 milliseconds) waiting for the InDesignServerService x64 service to connect.

 

Indesign server application works if launching from command line with the specified port 18555.

If trying to lauch IndesignServerService.exe from command line, there is a delay and finally nothing happens.

 

I have also tried launching 32bit indesign server service and the same error comes.

 

Would be grateful for your thoughts!

 

Message was edited by: Andrewdev Server specs: Windows Server 2003 Standard x64 Edition Service Pack 2 Intel Xeon CPU 3.00Ghz 9.76 GB of Ram Server is running virtualy on Xen hypervisor, there is no antivirus and windows firewall is disabled.

PDF Preset (joboptions)

$
0
0

Hi,

 

Where do PDF Preset files or joboptions files need to be stored for InDesign CS3 Server to "see" them. Would InDesign Server need to be restarted to pick up changes to the Presets?

 

 

Thanks

[CS3] Enabling full redo/undo support

$
0
0

Is there any way to enable full redo/undo support in the InDesign server?

Or can I write my own redo/undo functionality?

 

Thanx in advance.

Getting unable to snap in error when trying to run indesign server as service

$
0
0

Hi,

 

I am trying to get the indesign server cs5 as a service to run at a particular port on 64bit windows vm platform. The documentation pointed towards trying to operate the .msc file in <installation_folder>/adobe/indesign x64/ folder.  However I am getting a snap-in error. I have tried installing it through mmc.exe, but fails with the same error. It is a trial version right now.

 

The error reads

"MMC could not create a snap in. The snap-in might not have been installed correctly.

Name: IndesignServerService

 

CLSI ID:{xxxxxxxxxxxxx}

"

 

I have uninstalled, reinstalled and restarted many times.

Any info will be helpful. I am wondering if all the dlls have been registered correctly.

 

Thanks

Ravi

mmc snap-in

$
0
0

Hi,

 

I am trying to work out the best possible way to control multiple instances of indesign server on a windows machine. One way would is to use the mmc snap-in add on which provides a way to configure multiple instances with their own port and command line option which seems nicer than writing batch files. I could configure this from the Introduction document but there is one issue. All instances start and stop together when you start and stop the IndesignServerService from the services panel and i cant find a way to start/stop an individual instance.

 

I also tried to create individual named windows services in this fashion -

 

sc create "ID1" -config binpath= "C:\Program Files\Adobe\Adobe InDesign CS5.5 Server\InDesignServerService.exe"

sc create "ID2" -config binpath= "C:\Program Files\Adobe\Adobe InDesign CS5.5 Server\InDesignServerService.exe"

 

this works but now they dont accept startup params. Am i trying something impossible with this approach?

 

Thanks,

PT

InDesign server CS 5.5 - app.scriptArgs.get doesn't work in jsx script or simpleclient problem

$
0
0

Hello

 

I'm working with Adobe InDesing Server CS 5.5 and having problem that *.jsx script is not able to read input parameters passwd from sampleclient.exe or SOAP (same story in both cases)

I run following command:

 

     sampleclient.exe -host localhost:8080 "c:\CreateJPEG.jsx" param1="1"

also

     sampleclient.exe -host localhost:8080 "c:\CreateJPEG.jsx" param1=1

and even

     sampleclient.exe -host localhost:8080 "c:\CreateJPEG.jsx" "param1=1"

 

 

app.scriptArgs.get("param1") is always FALSE (see script body below).

Please help, I couldn't find an answer anywhere. All documents stats that this should work in a way I described, but it doesn't. Script is performed but param1 is not set.

 


Here is the script:

#target  InDesignServer

app.scriptPreferences.version = 7.0;

 

main();

function main()

{

  var eRet;   

 

 

  if (app.scriptArgs.get("param1"))

  {

    var sXMLFilePath = "C:\\CreateJPEG.xml";

    var eRet = app.createJpeg (sXMLFilePath);

  }

}

How to copy a table from one text frame to another...

$
0
0

Is there a way to copy a table from one text frame to another? I'm using JavaScript. The following will move a table from one text frame to another, but I need to copy.

 

var srcFrame = document.textFrames.item("section-template");

var dstFrame = document.textFrames.item("test");

srcFrame.characters[0].move(LocationOptions.before, dstFrame.insertionPoints[0]);

 

Thanks,

Mike-


Indesign Server CC Trial issues

$
0
0

The installation instructions states

 

You need to download Adobe Provisioning Toolkit Enterprise Edition (APTEE) for using the InDesign Server trial

 

The download link only refers to CS6, CS5.5 & CS5 not CC

Since there is no Adobe Provisioning Toolkit Enterprise Edition for CC I decided just to install and run the trial.

 

However I got the Adobe InDesign Server is not properly licensed and will now quit message.

According to the CC Release notes it says:

 

InDesign CC Server needs to be activated before it can be used. If the computer is online, activation is done automatically when you install. You need to provide your Adobe ID, and serial number when prompted by the installer. Unless the software is activated, you'll see an error, "Adobe InDesign Server’ is not properly licensed and will now quit."

 

My computer was online yet the it seems it didn't perfom the automatic activation as it suggests. When I entered my AdobeID credentials I did not get any errors saying it could not connect online.

 

So I had to do something and decided to use the Adobe Provisioning Toolkit Enterprise Edition for CS6.

This allowed me to get pass the licensing issue.

 

The next problem was I was getting DDE Server Window:InDesignServer.exe System Error popup. Telling me The program can't start because svml_dispmd.dll is missing from your computer.

 

C:\Program Files\Adobe\Adobe InDesign CC Server x64>indesignserver
================================================================================

.  InDesign CC Server Version 9.0 x64 Evaluation
.  Copyright 1999-2013 Adobe Systems Incorporated and its licensors.
.  All rights reserved. See the other legal notices in the ReadMe.
================================================================================

11/28/13 08:08:49 INFO  [server] Initializing
11/28/13 08:08:49 INFO  [server] Loading the application
11/28/13 08:08:49 INFO  [server] Scanning for plug-ins
11/28/13 08:08:49 INFO  [server] Registering 113 plug-ins
11/28/13 08:08:53 INFO  [server] Completing Object Model
11/28/13 08:08:53 INFO  [server] Saving Object Model
11/28/13 08:08:53 INFO  [server] Initializing plug-ins
11/28/13 08:08:53 INFO  [server] Calling Early Initializers
11/28/13 08:08:53 INFO  [server] Starting up Service Registry
11/28/13 08:09:02 INFO  [server] Executing startup services
11/28/13 08:09:02 INFO  [server] Using configuration configuration_noport
11/28/13 08:09:02 INFO  [server] Initializing Application
11/28/13 08:09:02 INFO  [server] Completing Initialization
11/28/13 08:09:02 INFO  [server] Calling Late Initializers
11/28/13 08:09:08 INFO  [server] Image previews are off
11/28/13 08:09:08 INFO  [server] Server Running
11/28/13 08:09:08 INFO  [javascript] Executing File: C:\Program Files\Adobe\Adobe InDesign CC Server x64\Scripts\startup scripts\ConnectInstancesToESTK.js
11/28/13 08:09:08 INFO  [javascript] Executing File: C:\Program Files\Adobe\Adobe InDesign CC Server x64\Scripts\converturltohyperlink\startup scripts\ConvertURLToHyperlinkMenuItemLoader.jsx
11/28/13 08:09:08 INFO  [javascript] Executing File: C:\Program Files\Adobe\Adobe InDesign CC Server x64\Scripts\converturltohyperlink\ConvertURLToHyperlinkMenuItem.jsxbin

 

So after browsing the net to see where I can get this missing svml_dispmd.dll I found this post http://software.intel.com/en-us/forums/topic/285859

and decided to install what it suggested.

I still got the missing dll error so I copied it from C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\compiler into C:\Program Files\Adobe\Adobe InDesign CC Server x64

 

Now it just sits there and hangs at the same spot

11/28/13 08:09:08 INFO  [javascript] Executing File: C:\Program Files\Adobe\Adobe InDesign CC Server x64\Scripts\converturltohyperlink\ConvertURLToHyperlinkMenuItem.jsxbin

 

What the heck is going on here?

 

 

I have installed Indesign Server CC on another machine and although I did not get the missing dll problem it still however hangs at the same spot mentioned above.

Could someone from Adobe please help. The already I'm losing days with this trial and I will have little days left to test this product.

Exporting PDF with embedded transparent TIFF images

$
0
0

I'm trying to export a PDF with embedded transparent TIFF images. These images have extremely large dimensions. During the embed process, they are shrunk down to fit in the placeholder frames within the target InDesign file. Because of the dramatic decrease in size, when I then export a PDF from the InDesign file I get a halo affect from the anti-aliasing around the edges of the embedded images. I've had some luck reducing the size of the halo by telling InDesign to not down-sample, but I haven't been able to eliminate it. Does anyone know a way to get rid of this artifact?

InDesign Server CS6 (MacOS) - JavaScripting & Troubleshooting "Bus error" or "Segmentation fault"

$
0
0

I'm attempting to convert a workflow from InDesign CS5.5 Desktop with AppleScript to InDesign Server CS6 with JavaScript. It seems most of our templates work fine but every now and then I run into one that seems to work properly but right after we export to PDF and JPG which is the final step in the script I get either a Bus error or a Segmentation fault error. The files do export and the console sits idle for a few seconds then I get the crash. It doesn't seem to give me anything else and I can't find a crash dump or core file anywhere on disk to examine.

 

The exact same input files on InDesign CS5.5 Desktop completing a very similar automation task via AppleScript work without an issue or error. I'm not certain if it's a problem with the way the InDesign files were put together, a version problem between a CS5.5 file and CS6, or something that I'm doing wrong in the script.

 

Is there a way to get InDesign Server to go into debug or verbose mode so that it will show more than just two word errors on crash?  I've read a few people talking here about the debug version but every path I've found to get access to the debug version runs into a roadblock with a bad link.

 

I would appreciate a point in the current right direction for how to debug these templates this script.

Japanese Crop Marks on IDS output?

$
0
0

I am currently implementing an IDS solution in Tokyo. Japanese crop marks are required by my client to be on all outputs, laser printed and X1A PDFs. My solution works fine in InDesign workstation, marks are what they should be. However in IDS I get north american crop marks and the layout name slug is unprintable because it includes Japanese characters. I was told there is no Pacific rim version of IDS, but there appear to be one for InDesign. The menu for Japanese Crop marks is visible in the Japanese localized machines I work with but not in the north american machines, Any help with this would be greatly appreciated!

InDesign Server 10 CC 2014

$
0
0

Hi there,

 

we are using InDesign CS4 upt o CC 2014 and have some automation going with InDesign Server.

Our latest InDesign Server is 9. This workflow can't handle CC 2014- Documents.

 

Is there any Release-Date for InDesign Server CC 2014?

 

Many thanks,

Florian

Does IDSD solve server issues?

$
0
0
Hi,

We've been having a lot of issues with Indesign CS2 crashing when placing images from our server and when saving to the server. It's not 100% recreatable but it happens a lot. The nature of our business requires that all the production and design staff have all their files on the server (not sure what kind of server it is, other than MacOSX, and it's 2.73 TB) and work off of that. We're constantly opening files, making changes and closing them, (we make dozens of ads and direct mail and outdoor advertising files each day) rather than a long project kind of deal where we could just move all the files to our individual hard drives. We don't need to share files while we're working on them, but we like having files on the server so if someone else does open the file while we're out they know they're working on the only file, that another version doesn't exist someone on someone's hard drive. So that was unfortunately a laborious explanation and I hope it was clear. Any thoughts on whether this product would solve our problems? Any thoughts on how to solve our problems without getting IDSD?

Thanks!
Mary

Java - Axis2: How to get an error code / error message from the Javascript via SOAP

$
0
0
Hi

In our Java applicsation we call a Javascript in a Indesign CS Server using the following code:

--- SNIP BEGIN ---

// calls the remote service on the indesign server
try {
// create service

ServiceStub oIndsgnSrvStub = new
ServiceStub(sIndesignServer);

// create service parameter
ServiceStub.RunScriptParameters
oIndsgnSrvRSParams = new ServiceStub.RunScriptParameters();

// create arguments with source- and target-file for parameter
ServiceStub.IDSPScriptArg[] oIndsgnSrvSArgs = new ServiceStub.IDSPScriptArg[2];
oIndsgnSrvSArgs[0] = new
ServiceStub.IDSPScriptArg();
oIndsgnSrvSArgs[0].setName("xml-input");
oIndsgnSrvSArgs[0].setValue(sSourceFile);

oIndsgnSrvSArgs[1] = new
ServiceStub.IDSPScriptArg();
oIndsgnSrvSArgs[1].setName("output-file");
oIndsgnSrvSArgs[1].setValue(sTargetFile);

// define service parameter

oIndsgnSrvRSParams.setScriptArgs(oIndsgnSrvSArgs);

oIndsgnSrvRSParams.setScriptFile(sScriptFile);

oIndsgnSrvRSParams.setScriptLanguage("javascript");
oIndsgnSrvRSParams.setScriptText("");

// create runscript
ServiceStub.RunScript oIndsgnSrvRS = new ServiceStub.RunScript();

// set parameter

oIndsgnSrvRS.setRunScriptParameters(oIndsgnSrvRSParams);

//$$$ there should be an answer returned by the InddSrvr
// execute SOAP call
ServiceStub.RunScriptResult oIndsgnSrvRes = oIndsgnSrvStub.RunScript(oIndsgnSrvRS);

if(oIndsgnSrvRes.getErrorNumber() == 0) {

oServerProdJob.setProdState(CBP_Constant.REMOTEPRODUCTIONSTATE_SUCCESS);
bOK = true;
} else {

oServerProdJob.setProdState(CBP_Constant.REMOTEPRODUCTIONSTATE_FAILURE);
bOK = false;
}
//$$$ should be set, if there is something returned by inddsrvr
//oServerProdJob.setErrorMsg(sErrorMsg);
} catch(Exception e) {
sError += e.getMessage() + "\n";
bOK = false;
}

--- SNIP END -----

The problem is that we don't get the error code and/or the error message from the Javascript in oIndsgnSrvRes. The error code is always 0 if I set an Integer value as return in the Javascript. If I set a String, there is an Exception in the Java application.

Here is the Java script we use:

--- SNIP BEGIN ---

main();

main()
{
var sError = "";
var sXMLInput = "";
var sLayoutPath = "";

// get the SDKCodeSnippetRunner object
var cbpAdapter = app.cbpCbpadapterObject
if (cbpAdapter) {
sXMLInput=app.scriptArgs.get("xml-input");
sLayoutOutputFile=app.scriptArgs.get("output-file");

sError = cbpAdapter.doProcess(sXMLInput, sLayoutOutputFile);
}
return sError; // This give an Exception; if I return an Integer the ScriptResult is always 0
}

--- SNIP END -----

If I try this with the test application from Adobe I get the error code correctly. But in the Java application, using SOAP, I can't get the error code.

What could be wrong?
Any ideas?

Thanks a lot for the support.

Kind regards
Hans

Which action can throws this COMException?

$
0
0
Hi there,

sometimes and not really reproducible I get the following COMException:

System.Runtime.InteropServices.COMException (0x800706BE): The remote procedure call failed. (Exception from HRESULT: 0x800706BE)
at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData)
at InDesignServer._Application.get_Documents()
at MyApplication.openDocument(String filename)
at [...]

As you can see, the exception is thrown anywhere behind my openDocument function. Since the error occurs only sometimes I want to know which action (method call, property access, whatever) makes use of InDesignServer._Application.get_Documents()?

These are the accesses I do on the COM-application:
InDesignApp.Open(theFilename)
ActiveDocument = InDesignApp.Documents.FirstItem
ActiveDocument.ViewPreferences.HorizontalMeasurementUnits = idMeasurementUnits.idMillimeters
ActiveDocument.ViewPreferences.VerticalMeasurementUnits = idMeasurementUnits.idMillimeters
ActiveDocument.Converted
ActiveDocument.Save(theFilename)
InDesignApp.Documents.Count
InDesignApp.Documents.LastItem.Close(InDesignServer.idSaveOptions.idNo)

So which one is the suspect?
I think this can only be answered by the Adobe crew...

Printing to PostScript - Clean7Bit or Binary

$
0
0
When we "print" an .indd document to PostScript using InDesign CS3 (desktop version), the resulting file's DataDefinition is always set to Clean7Bit. However, when we call the Java InDesign Server API (using InDesign Server CS3) to print to PostScript, the resulting file is either Clean7Bit or Binary. It is not consistent. Is there a value we can set to always guarantee the resulting file is Clean7Bit?

Thanks for your help!
Jennifer

InDesign Server, Applescript, and SOAP

$
0
0

Hi All,

 

I've scoured these forums and the rest of the 'net as best I can, but I can't seem to find a solution for my issue, so I'm hoping maybe someone out there can shed some light on it for me.

 

I have InDesign Server running on one box (IP of 192.168.1.5, launched to service SOAP commands on port 12345), and I'm attempting to send a SOAP command to it via Applescript from another box, but I can't seem to figure out how to get it the RunScriptParameters. The Applescript I'm running looks something like (dummy text in for the parameters right now, because that's where my trouble is):

 

tell application "http://192.168.1.5:12345/"
    set resultText to call soap {method name:"RunScript", method namespace uri:"http://ns.adobe.com/InDesign/soap/", parameters:????}
end tell

 

Every time I run it, under a variety of ways of trying to feed it parameters, I get the error: "/ got an error: The required SOAP element "RunScriptParameters" could not be found. Please check the SOAP message that was sent to InDesignServer." I'm lead to believe that the method name and method namespace uri I'm sending through are correct, as if I change either of those it gives me a generic error. (Method <blah> not implemented, if I change "RunScript or the method namespace uri.)

 

So, what I'm left with is figuring out how exactly to send through the RunScriptParameters with this setup. I've tried every way I can think of to feed it the scriptLanguage, scriptFile, and scriptArgs, as an array of elements under parameters, as part of a variable called runScriptCommands which I feed through parameters, and every variety of this, to no avail, all giving exactly the same error. Any help would be immensely appreciated.

 

(And I know Applescript may not be the ideal way to call a SOAP command, but it would be a very simple way for me to test ID Server scripts in my situation, and there isn't any reason that I can see that it shouldn't work...)

 

Thanks!

Mathew

Bug in CS4???

$
0
0

Seems like there is a problem with ScriptArgs and UTF-8 in IDS4. Because it does not handle UTF-8. Norwegian characters, and alle other non standard seems to not work. Did the same thing with IDS3 and there it worked. Is this a bug?

InDesign CC Server - ESTK Cannot Interact

$
0
0

I'm running Windows Server 2008R2 (64-bit) and I'm having a huge issue getting scripts to run from ESTK to InDesign CC Server. I've got InDesign CC (Desktop) installed as well. Both versions are fully updated as of today. Can you please help me fix this? When I try to run a script using ESTK targeting InDesing CC Server from the same computer, it sits there with a message box saying "Waiting; press ESC to abort..." It appears that it's not able to communicate with the process (InDesignServer.com, which is running at the time) at all, and I'd love a little help debugging this.

 

Thanks!

Viewing all 20709 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>