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

Need help executing jsx in InDesign Server

$
0
0

Hi All,

 

I have written a javascript and indd template to convert my data in xml to pdf in InDesign. Now I want to use this javascript and indd template in InDesign Server. I have removed all GUI related thing in my script so that it doesnt need any GUI input. I am having a problem using SOAP implementation for this.

 

Can any one guide me how can i call this script in InDesign Server. I've tried sample client given in InDesign Products SDK and it is giving me error executing this javascript.

 

Any help in this issue will be highly appreciated.


In some cases mapStylesToXMLTags() method raises an exception!

$
0
0

HI,

 

I am trying to map styles to xml tags, and interestingly it works on some InDesign document while in some cases it dosen't work. It raises an exception IDS exception: 1.0, thats why I am not be able to understand what is the root couse behind that exception. So please if you have any idea, please let me know that.

 

Thanks in advance,

Suman Saurav

HELP! Export indd- epub AUTOMATION. How to Implement! thanks!

$
0
0

Hi. In need some help. Im an intermidiate .net programmer. i need  some help on how to implement a simple automation on exporting indd to epub.

 

What language suitable to use?

do i need indesign server ion this simple automation?

 

 

Thanks!

ASP.NET LBQ (Load balancing and Queue)

$
0
0

Can anyone help me on how to communicate with LBQ using ASP.Net C#

 

I'm using dot net 3.5 framework with webform (not mvc)

 

Please share the link or sample code if anyone has.

 

 

Thank you

InDesign Server crashing on hyperlinks - HYPERLINKS.RPLN

$
0
0

When trying to access properties of a hyperlink it causes InDesign to crash. I can assign properties of the hyperlink but if I try and retrieve properties it hangs and crashes resulting in the error below. I'm using InDesign Server 64bit version 7.0.4.553. What's interesting is this works completely fine when testing using InDesign CS5 client version.

 

I have used Extend script toolkit to try and debug the issue but you can't even use the databrowser to look at the hyperlink properties as it'll crash there as well. But if I debug using toolkit with client version of InDesign it works fine. It really seems like an issue with InDesign Server and I'm not sure what I can do to work around/fix this problem.

 

Example script -

 

var myDoc = app.open([document path]);

for (i = 0; i < myDoc.hyperlinks.length; i++)

{

     var myHyperlink = myDoc.hyperlinks[i];  

     var newDestination = myHyperlink.destination; // - this causes indesign to crash

     //Do some processing...

}

 

 

Faulting application name: InDesignServer.exe, version: 7.0.4.553, time stamp: 0x4d891c6d

Faulting module name: HYPERLINKS.RPLN, version: 7.0.4.553, time stamp: 0x4d891ef9

Exception code: 0xc0000005

Fault offset: 0x000000000006e33b

Faulting process id: 0x1dfc

Faulting application start time: 0x01ccd52e23e3216c

Faulting application path: C:\Program Files\Adobe\Adobe InDesign CS5 Server x64\InDesignServer.exe

Faulting module path: C:\Program Files\Adobe\Adobe InDesign CS5 Server x64\Required\HYPERLINKS.RPLN

 

Any help would be great! I can post more information if needed.

[CS5] InDesign Server LBQ - execute copy of a script?

$
0
0

Hello,

 

Currently we are using the LBQ (load balancing) to queue up scripts to be run on our instances in IDS. After the scipt is run, we're trying to (within our .NET code) delete the script file. This works most of the time, but every once in a while we get an IO exception stating that "the file cannot be deleted because it is in use." I've run several tests and narrowed it down to being directly related to IDS executing the script, but thats about as far as I've gotten.

 

One idea that came up was to see if IDS could possible open up a copy of the script file and execute it (whether that be an option of the LBQ EnqueueJob() method, or a configuration setting on the server itself). I know that from within a script you can open up other files "as copies" but I wasn't sure if IDS had a similar ability. This would be nice because it wouldn't have to open the physical script file, thus we'd never have any trouble deleting it.

 

Has anyone ever done anything like this or know of something similar we could try?

 

Many thanks in advance!

 

-lhan

Is the Script Api for InDesign server...anywhere?

$
0
0

The closest thing I can find to a published script API is the InDesign Scripting Guide pdf (by the way Adobe, I know you love pdfs, but it is an awful format for documentation, these sort of documents is actually what HTML was invented for - use it pretty please?)

 

However, this only seems to discuss the api that is available from within InDesign. I am scripting InDesign server and it seems to be somewhat different, for example activeDocument is not actually a property on app. Is this API actually published anywhere?

Cannot start multiple sessions in CS6

$
0
0

Hi,

 

I am trying the new multi threads feature from IDS CS6 (contra using multiple instances).

But I seem unable to start several sessions from the same client.

 

I do have a machine with 4 core processors (even a multi-instances license), so I should be able to start 4 sessions in parallel.

I start a single IDS instance with SOAP on port 12345.

 

Using SoapUI:

- I make a call to "BeginSession": it returns successfully (for example sessionID 2)

- If I make a second call to "BeginSession", it returns a SOAP fault telling me that the call is already part of a session...

- If I make a third call, it returns successfully (sessionID 3)

- And so on, every second call will fail

- Furthermore, it seems that the failing call triggers the end of the previous session, because I am unable to call EndSession after that. It would explain why every second call will succeed.

- if I call BeginSession, then EndSession, BeginSession, EndSession... it works without problem.

 

I also tried using two different clients running from two different computers, against the same InDesign Server:

- Call BeginSession from client 1: success

- Call BeginSession from client 2: success

- Call EndSession from client 1: success

- Call EndSession from client 2: success

- If a client tries to open a two sessions in a row (without callind EndSession on the first one), it fails as I described in the first case above.

- If a client tries to close the session opened by the other client, I get a SOAP fault too.

 

 

So in conclusion, are we limited to open only one session per client???

Does IDS CS6 retain information on which client opened which session, and then ensure to have a maximum of one session per client?

 

This is a big problem, as I want a unique controller opening the sessions and running all server script calls... It should definitely need to open several sessions in parallel, else there would be no point in using multi-sessions instead of multi-instances.

 

Thanks for your help,

Martin


rectangle.place (Placing Image) - InDesign vs InDesignServer

$
0
0

Any help or suggestions or even guesses appreciated here. Thanks!

 

I have a script that correctly places images in tagged rectangles via script in InDesign, the script then exports to PDF. All is well.


When I run the same script with the same image path folder structure in InDesignServer, the exported PDF does not show the 'placed' images. I'm getting no errors in my console.


Early in the script I have;

myInDesign.imagePreview = True


I place the images with;

myRectangle.Place myFile, False

myRectangle.fit 1668247152

myRectangle.fit 1667591779

for each myItem in myRectangle.items

     myItem.itemLink.unlink

next



I've tried it with and without the .unlink code (an attempt to force embedding of the images)


In all other aspects the script works the same on ID as IDS. I'm starting my ID CS6 server with InDesignServer -previews


I suspect I'm missing something with the PDF export preferences, but have no idea why it's working on ID and not on IDS.


Any help greatly appreciated.

 

(I have cross-posted this in the InDesign Forum. I will remove one or the other if answered)

Outlines in master pages

$
0
0

Hello everybody, I have found a problem with the ouline function in the indesign server scripting.

I don't know if this is the correct section or I must use "Indesign scripting"

 

Well, I am going to try to explain my problem:

 

I have a script to do (between others) the ouline of all the document. My problem appear when I want to do the outline of some content placed and linked in the master.

For example, the page number is usually place in the master page and is a link added with a "special character".

The problem is that althought the outline is correctly made, the content of the box is wrong. It is not the page number, but the character 'A' which appears when the special character is added.

 

It seems that the problem is that when the system try to do the outline the content of the link is lost.

One solution would be to take to the front end the box, i.e. quit that box to the master page, but I don't know how can I do that from the script.

 

I hope that everything is well explained and someone could help me.

 

Regards

Indesign server CC trial help

$
0
0

I have programmed Applescript and Indesign for desktop for years.

I have a solution that should work well with Indesign server and applescript.

Downloaded the Trial for Indesign Server CC.

Then you have to figure out how to activate the product, which i think i have done via this command :

 

adobe_prtk --tool=StartTrial --leid=InDesignServer-CS7-Mac-GM

 

Now that its not compaining about being activated i can see that the sample applescripts provided in the install can compile.

If i run them however i get a failiure thats odd.

 

tell application "Finder"

          get startup disk

                    --> "CWFM1:"

          exists "CWFM1:ServerTestFiles"

                    --> true

          exists "CWFM1:ServerTestFiles:bob.indd"

                    --> false

end tell

tell application "InDesignServer"

          close every document saving no

          make new document

                    --> document "Untitled 3"

          save document "Untitled 3" to "CWFM1:ServerTestFiles:bob.indd"

                    --> error number -1728

Result:

error "InDesignServer got an error: Can’t get document \"Untitled 3\"." number -1728 from document "Untitled 3"

 

 

The folder is chmod'd to 777 so its not a read write issue.

 

if i just use the normal open command in applescript i get this error :

 

The document “bob.indd” could not be opened. InDesignServer cannot open files of this type.

 

which is just odd. its a normal empty indesign document with nothing in it!

 

 

has anyone got ideas?

 

 

 

Server is MacMini i7 with 16gb ram, OS X 10.8.5 server.

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!

Grey Lines around the image while generating PNG from INDD file

$
0
0

Capture.PNG

Hi,

 

I am using the InDesign Server to generate the PNG image and PDF from INDD file. While designing we do mapping of variable data fields, e.g., Text will be replaced by dynamic text, image will be replaced by dynamic image, barcode will be drawn on the basis of input at the image generation from InDesign Server.

 

Now when I do this mapping, a grey color line comes by itself and surrounds that particular image/ barcode (will be known as Variable Data fields). This grey line signifies that this data field is a variable datafield which will be replaced dynamically at the time of PDF OR Image generation by InDesign Server.

 

Now the InDesign Server is behaving different when:

 

1. when PDF is generated : Proper PDF gets generated by replacing all the variable data fields and with out any grey lines.

2. when PNG is generated : Image got generated by replacing all the variable data fields, but the images and barcode still contains the grey lines which were just to signify the Designer about the variable datafield.

 

Therefore, InDesign Server is generating the PNGs with the greylines surrounding the images and barcodes, which is not correct. Can any one let me know how can I remove these grey lines from PNG?

 

Please find one sample screenshot of INDD file in the attached file.

 

 

Warm Regards,

Rahul

Data merge crash in ID CS6 server (but works in ID CS6 desktop)

$
0
0

I have a strange problem with datamerge solution of InDesign cs6 server.

 

 

There is a 20-page indd document and a 50-record csv file to be used along with it.

Creating merged document (using data merge) causes ID CS6 server to crash right after the moment the following line executes:

 

 

objDoc.mergeRecords();

 

 

However, strangely, for the same template file there is no crash in InDesign desktop counterpart.

I certainly seems that there is some inherent problem with data merge in the InDesign server. All data merge settings are same for both applications.

 

 

Even there is no crash if I directly export to PDF as follows:

objDoc.dataMergeProperties.exportFile(ExportFormat.PDF_TYPE, outputfile);

 

 

 

 

So, in summary for the same template file:

 

 

objDoc.mergeRecords(); // crash occurs in InDesign server but not in desktop counterpart

objDoc.dataMergeProperties.exportFile(...); // no crash at all

 

 

It would be a great help if someone can throw some light on this.

How to start two instances of InDesign server independently?

$
0
0

Hello,

we have a multi instance InDesign server installation.

And we are able to start two instances of InDesign server on different ports.

 

But now we would like to use different plugins for different instances.

Is it possible somehow? For example install InDesign server two times in different folders or something like that?

 

Thank you in advance.


How to call InDesign SOAP?

$
0
0
I'm new to InDesign server. I started InDesign server using command indesignserver port 18383. Running HelloWorld.jsx via TestClient is working fine . But now I need write a PHP program to call InDesign SOAP API. I did some searching but I could not figure out what the parameters and path are. My InDesign server is on 192.168.0.150:18383
and I'm using PHP 5's SOAP extension. If there is sample code, that would be great. Any help would be appreciated.

1, Where I can find following information:
What is Method Name? such as SomeFunction
what is Endpoint? such as URL http://x.x.x.x:8080/soap
what is SOAPAction? such as urn:xmethods-delayed-quotes#SomeFunction
what is Method Namespace URI? such as urn:xmethods-delayed-quotes
What is Input Parameters?
What is Output Parameters?

Or
2, use wsdl - but what is the path of some.wsdl? and what is SomeFunction? I know there is function called RunScript

Following are some sample PHP code I need:

$client = new SoapClient("some.wsdl");

$client = new SoapClient("some.wsdl", array('soap_version' => SOAP_1_2));

$client = new SoapClient("some.wsdl", array('login' => "some_name",
'password' => "some_password"));

$client = new SoapClient("some.wsdl", array('proxy_host' => "localhost",
'proxy_port' => 8080));

$client = new SoapClient("some.wsdl", array('proxy_host' => "localhost",
'proxy_port' => 8080,
'proxy_login' => "some_name",
'proxy_password' => "some_password"));

$client = new SoapClient("some.wsdl", array('local_cert' => "cert_key.pem"));

$client = new SoapClient(null, array('location' => "http://localhost/soap.php",
'uri' => "http://test-uri/"));

$client = new SoapClient(null, array('location' => "http://localhost/soap.php",
'uri' => "http://test-uri/",
'style' => SOAP_DOCUMENT,
'use' => SOAP_LITERAL));

$client = new SoapClient("some.wsdl",
array('compression' => SOAP_COMPRESSION_ACCEPT | SOAP_COMPRESSION_GZIP));

$server = new SoapClient("some.wsdl", array('encoding'=>'ISO-8859-1'));


Thanks

Robert

InDesign Server command-line flags

$
0
0
How can I get command-line flags list of InDesign Server?

Actually the situation is testclient doesn't work.
I installed InDesign Server and SDK.
I run InDesignServer.com then I use something like this "testclient -server t.js".
Server and client runs on same comp.
As result I have this exception:
SOAP FAULT: SOAP-ENV:Client
"Unknown error"
Detail: TCP connect failed in tcp_connect()

in SDK indesign-server-test-client.pdf I found:
"Using InDesign Server
In order to use the test client, you must have a machine that has InDesign Server installed and
running properly, as the test client will communicate with the InDesign Server application.
For instructions on running and terminating InDesign Server, including command-line flags,
please refer to the InDesign Server Installation and Configuration Guide."

Any suggestion?

Simply open a file

$
0
0

Hi,

 

This is my first attempts to script IDS. I am stuck with the simpliest command: open a file.

 

app.open(File(myFilePath));

 

It returns an error.

 

<IDSP:RunScriptResponse><errorNumber>1</errorNumber><errorString>open</errorString><scriptResult></scriptResult></IDSP:RunScriptResponse>

I first developed on Indesign desktop and the script just works fine. I read the IDS scripting guide so I am aware of restrictions and I think I avoided them.

Is there anything to be aware of for opening files ?

Best,

Loic

Unable to run Multiple Sessions in InDesign Server

$
0
0

Hi,

 

I was trying to execute the following code simultaneously using two threads. But it executed only the first thread and it got stuck with the second thread while it was exceuting the line stub.beginSession(). Please comment on this.

 

try {

 

 

                              // Setup the parameters

                              RunScriptParameters runScriptParams = new RunScriptParameters();

                              runScriptParams.setScriptLanguage("javascript");

 

 

                              runScriptParams.setScriptText("alert('hello world')");

 

                              BasicClientConfig basicClientConfig = new BasicClientConfig();

                              SimpleChain httpChain = new SimpleChain();

                              httpChain.addHandler(new CommonsHTTPSender());

                              basicClientConfig.deployTransport("http", httpChain);

 

 

                              // Make a service

                              Service inDesignService = new ServiceLocator(basicClientConfig);

                              ServiceStub stub = (ServiceStub) inDesignService

                                                  .getService(new URL("http://127.0.0.1:8470"));

 

 

                              UnsignedInt sessionID = stub.beginSession();

                              System.out.println("begin session : " + sessionID.toString());

 

 

                              // Set sessionID into header so that server knows run scripts in

                              // a session context.

                              SOAPHeaderElement header = new SOAPHeaderElement(

                                                  "http://ns.adobe.com/InDesign/soap/", "sessionID");

                              header.addTextNode(sessionID.toString());

                              stub.setHeader(header);

 

 

                              IntHolder errorNumber = new IntHolder(0);

                              StringHolder errorString = new StringHolder();

                              DataHolder results = new DataHolder();

 

 

                              // Execute the script

 

 

                              stub.runScript(runScriptParams, errorNumber, errorString, results);

 

 

                              if (errorNumber.value == 0) {

                                        System.out.println("Script success");

                                        if (results.value.getData() == null)

                                                  System.out.println(": Script reported no errors");

                                        else

                                                  System.out.println(" ("

                                                                      + results.value.getData().getClass().getName()

                                                                      + "): " + results.value.getData());

                              } else {

                                        System.err.println("Error number: " + errorNumber.value);

                                        if (!errorString.value.equals(null))

                                                  System.err.println(errorString.value);

                              }

 

 

                              try {

                                        stub.endSession(sessionID);

                              } catch (NullPointerException e) {

                              }

 

 

                              System.out.println("end session : " + sessionID.toString());

 

 

                    } catch (IllegalArgumentException e) {

                    } catch (IOException e) {

                              System.err.println(e.getMessage());

                    } catch (Exception e) {

                              System.err.println(e.getMessage());

                    }

 

Thanks And Best Regards,

Dinesh.

Installing Transparency Flattener Preset for Indesign Server CS4

$
0
0

I'm trying to figure out how to install a transparency flattener preset for InDesign Server CS4.

 

I can see how they are installed for the InDesign app.  Edit -> Transparency Flattener Presets...

 

But I'm not sure which directory to install these on for the server.

 

I've seen a post that mentions:

C:\Documents and Settings\<UserName>\Application Data\Adobe\InDesign\Version 6.0\en_US\Transparency Flattener Presets

 

/Users/<UserName>/Library/Preferences/Adobe InDesign/Version 6.0/en_US/Transparency Flattener Presets

 

for the Desktop version.  But when I place files here even for the CS4 Desktop, they don't seem to show up in the UI.

 

Any help would be appreciated,

Thanks,

Dennis

Viewing all 20709 articles
Browse latest View live


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