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

Scripts:Application:myscript.jsx not found

$
0
0

Hi,

 

I want to run a script in InDesign Server CS6 Windows. The script is in the subfolder <InDesign Server>/Scripts and I call it as follows:

 

sampleclient.exe -host localhost:18383 -server -Scripts:Application:myscript.jsx

 

This works fine in the debug version of the InDesign Server, but not in the release version. What's going wrong here?

 

Markus


Indesign server trial not licensing

$
0
0

i am trying to get Indesign server Trial working... without any result.

 

this is the result in adobe_prtk

 


Copyright 2012 Adobe Systems Incorporated

All rights reserved.

StartTrial Successful

Return Code = 0

 

still get no working server

 

message

 

ERROR[server] Adobe InDesign Server is not properly licensed and will now quit.

Anyone any idea ??

 

Peter

FindChangeByList for CS6 Server?

$
0
0

Dear all,

 

can anybody please help me?

I am quite new to CS6 server and tried to use the well-known "FindChangeByList.jsx" on a generated document, but it doesn't work...

I did some changes to the script as described in the Scripting User Guide for the server version, but I am not sure if this was right as two or three chnages didn't make sense to me...

 

1. Replace the main() function with the following:

 

function main(){
if(app.documents.length > 0){
//Provide a story object or a document object.
myFindChangeByList(app.documents.item(0), false);
}
}

 

2.     Delete the myDisplayDialog function.

 

3.     Change the line:

 

 

var myFindChangeFile = "/c/FindChangeSupport/FindChangeList.txt";

 

to (you will have to fill in a valid file path for your system):

 

set myFindChangeFile to "yukino:FindChangeSupport:FindChangeList.txt"

--> Is this right?? This looked like AppleScript to me.
To me it made more sense to change it to

 

    var myFindChangeFile = "FindChangeSupport/FindChangeList.txt";

 

Doesn't a relative path work if the .txt file is in the specified subfolder?

Which would be the right syntax for Windows path like "\\myserver\somefolder\myscriptfolder\FindChangeSupport\FindChangeList.txt"?

 

4.     Delete the myFindChangeFile function.

--> I didn't find this function, I deleted the myFindFile function

 

5.     Delete the myGetScriptPath function.

 

 

On CS6 desktop version I use the unchanged script version which works well and replaces the things defined in the txt file.

 

 

 

After my changes my complete script looks like this, but nothing is replaced...

 

//FindChangeByList.jsx
//An InDesign CS4 JavaScript
/* 
@@@BUILDINFO@@@ "FindChangeByList.jsx" 2.0.0.0 10-January-2008
*/
//Loads a series of tab-delimited strings from a text file, then performs a series
//of find/change operations based on the strings read from the file.
//
//The data file is tab-delimited, with carriage returns separating records.
//
//The format of each record in the file is:
//findType<tab>findProperties<tab>changeProperties<tab>findChangeOptions<tab>description
//
//Where:
//<tab> is a tab character
//findType is "text", "grep", or "glyph" (this sets the type of find/change operation to use).
//findProperties is a properties record (as text) of the find preferences.
//changeProperties is a properties record (as text) of the change preferences.
//findChangeOptions is a properties record (as text) of the find/change options.
//description is a description of the find/change operation
//
//Very simple example:
//text    {findWhat:"--"}    {changeTo:"^_"}    {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, wholeWord:false}    Find all double dashes and replace with an em dash.
//
//More complex example:
//text    {findWhat:"^9^9.^9^9"}    {appliedCharacterStyle:"price"}    {include footnotes:true, include master pages:true, include hidden layers:true, whole word:false}    Find $10.00 to $99.99 and apply the character style "price".
//
//All InDesign search metacharacters are allowed in the "findWhat" and "changeTo" properties for findTextPreferences and changeTextPreferences.
//
//If you enter backslashes in the findWhat property of the findGrepPreferences object, they must be "escaped"
//as shown in the example below:
//
//{findWhat:"\\s+"}
//
//For more on InDesign scripting, go to http://www.adobe.com/products/indesign/scripting/index.html
//or visit the InDesign Scripting User to User forum at http://www.adobeforums.com
//
main();
function main(){
if(app.documents.length > 0){
//Provide a story object or a document object.
myFindChangeByList(app.documents.item(0), false);
}
function myFindChangeByList(myObject){    var myScriptFileName, myFindChangeFile, myFindChangeFileName, myScriptFile, myResult;    var myFindChangeArray, myFindPreferences, myChangePreferences, myFindLimit, myStory;    var myStartCharacter, myEndCharacter;    var myFindChangeFile = "FindChangeSupport/FindChangeList.txt";    if(myFindChangeFile != null){        myFindChangeFile = File(myFindChangeFile);        var myResult = myFindChangeFile.open("r", undefined, undefined);        if(myResult == true){            //Loop through the find/change operations.            do{                myLine = myFindChangeFile.readln();                //Ignore comment lines and blank lines.                if((myLine.substring(0,4)=="text")||(myLine.substring(0,4)=="grep")||(myLine.substring(0,5)=="glyph")){                    myFindChangeArray = myLine.split("\t");                    //The first field in the line is the findType string.                    myFindType = myFindChangeArray[0];                    //The second field in the line is the FindPreferences string.                    myFindPreferences = myFindChangeArray[1];                    //The second field in the line is the ChangePreferences string.                    myChangePreferences = myFindChangeArray[2];                    //The fourth field is the range--used only by text find/change.                    myFindChangeOptions = myFindChangeArray[3];                    switch(myFindType){                        case "text":                            myFindText(myObject, myFindPreferences, myChangePreferences, myFindChangeOptions);                            break;                        case "grep":                            myFindGrep(myObject, myFindPreferences, myChangePreferences, myFindChangeOptions);                            break;                        case "glyph":                            myFindGlyph(myObject, myFindPreferences, myChangePreferences, myFindChangeOptions);                            break;                    }                }            } while(myFindChangeFile.eof == false);            myFindChangeFile.close();        }    }
}
function myFindText(myObject, myFindPreferences, myChangePreferences, myFindChangeOptions){    //Reset the find/change preferences before each search.    app.changeTextPreferences = NothingEnum.nothing;    app.findTextPreferences = NothingEnum.nothing;    var myString = "app.findTextPreferences.properties = "+ myFindPreferences + ";";    myString += "app.changeTextPreferences.properties = " + myChangePreferences + ";";    myString += "app.findChangeTextOptions.properties = " + myFindChangeOptions + ";";    app.doScript(myString, ScriptLanguage.javascript);    myFoundItems = myObject.changeText();    //Reset the find/change preferences after each search.    app.changeTextPreferences = NothingEnum.nothing;    app.findTextPreferences = NothingEnum.nothing;
}
function myFindGrep(myObject, myFindPreferences, myChangePreferences, myFindChangeOptions){    //Reset the find/change grep preferences before each search.    app.changeGrepPreferences = NothingEnum.nothing;    app.findGrepPreferences = NothingEnum.nothing;    var myString = "app.findGrepPreferences.properties = "+ myFindPreferences + ";";    myString += "app.changeGrepPreferences.properties = " + myChangePreferences + ";";    myString += "app.findChangeGrepOptions.properties = " + myFindChangeOptions + ";";    app.doScript(myString, ScriptLanguage.javascript);    var myFoundItems = myObject.changeGrep();    //Reset the find/change grep preferences after each search.    app.changeGrepPreferences = NothingEnum.nothing;    app.findGrepPreferences = NothingEnum.nothing;
}
function myFindGlyph(myObject, myFindPreferences, myChangePreferences, myFindChangeOptions){    //Reset the find/change glyph preferences before each search.    app.changeGlyphPreferences = NothingEnum.nothing;    app.findGlyphPreferences = NothingEnum.nothing;    var myString = "app.findGlyphPreferences.properties = "+ myFindPreferences + ";";    myString += "app.changeGlyphPreferences.properties = " + myChangePreferences + ";";    myString += "app.findChangeGlyphOptions.properties = " + myFindChangeOptions + ";";    app.doScript(myString, ScriptLanguage.javascript);    var myFoundItems = myObject.changeGlyph();    //Reset the find/change glyph preferences after each search.    app.changeGlyphPreferences = NothingEnum.nothing;    app.findGlyphPreferences = NothingEnum.nothing;
}

InDesign Server - License

$
0
0

Hi,

 

I want to have InDesign Server trial for ever for one my cloud product in which I am tring to demo. After the demo user can either purchase InDesign server themself or plug-in my tool with their existing InDesign server. If I use InDesign Server 90 days trial, after 90 days, will it stop to work or continue to work with water mark? I am fine to have water mark even from the first day. I email to Adobe asking "InDesign Server Developer Free License" but no response. Please advise.

Single Instance to Multi Instance licensing

$
0
0

Is it possible to upgrade from single instance license to multi instance license? If yes, what is the cost involved?

where are adobe fonts installed in Mac OSX?

$
0
0

Hi,

I need the same Adobe fonts in Photoshop CS6 and InDesign CS6.

Where are they installed in OSX?

Do my Adobe programs install fonts in a different folder than other programs do?

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

InDesign Server SOAP API - Status check

$
0
0

Hi,

 

I am running 5 InDesign ports and sending jobs using "Sample Client" SOAP method. For some unknown reason, some ports got crash or not responding. How can I check whether particular port is running without "crash or not-response"? So that, I can notify this by automatically, and send the job to another port.


Indesign Server (via Windows COM) methods

$
0
0

Where to I find information/references to use Indesign Server via the Windows COM.

I'm trying to export and Indesign file to PDF.

When I look in de object model viewer for Indesign Server CS6 (8.0) there is a method 'exportFile' for the Document object. Using this method results in 'Fatal error: Call to undefined method variant::exportFile()'.

Using the method 'export' (which is not documented) I can export to pdf, but I don't know the exact parameters to give and cannot find any information in any reference.

 

Where do I find the correct list with methods and the complete info about these methods when I want to use the COM object?

 

kr

 

Arno

PDF intermittent export problems (e.g Font embedding sometimes fails)

$
0
0

Hello,

 

Currently we're experiencing some weird issue with our Indesign Server in one of our environments ( we do not experience the same problem in our other env which has the same configuration)

It is often exporting some PDFs with problems in its font information (when opening the PDF in the viewer, some of the text is missing and the reader shows a prompt "Cannot extract the embedded font '<some alphanumeric prefix>' + <font_name>'. Some characters may not display or print correctly")


We are not using any font manager/3rd party plugins and have also tried to clear/refresh the font cache / list (*.lst) files and reset Indesign Server preferences (by deleting specific the pref folders as advise in one of the forum posts)

The problem is intermittent as exporting the PDF from the IDML again doesn't cause the error so not sure why this is happening.

 

Note that we are exporting the PDF to a shared folder (but mapped to a local folder where indesign server is located, the folder is referenced in indesign with the remote path e.g \\192.168..x.x\Shared\<output_file>.pdf). There is no antivirus installed on the computer.

 

Does anyone have any similar problem or any advise on what else I can investigate?

 

Thanks

Install color profile

$
0
0

Hi there,

 

How do I install new color profiles? I'm developing on an OS X Server and I need to export PDFs with specific color profiles. I copied the new profiles to "/Library/Application Support/Adobe/Color/Profiles" and created a joboptions file, that uses the new profile. However it seems that the InDesign Server is unable to locate the new profiles (even after server restart). The exported PDFs have all the same default color profile. So, how do I export PDFs with custom color profiles?

 

Regards

Thomas Schnitzler

Indesign Server download link not working

How do you upload/download Indesign Documents to the server through client interface?

$
0
0

Hi,

 

   I am new to Adobe Indesign Server and just got the trial version and am starting to play around with it. I need the Adobe Indesign server to generate preview from .indd packaged files. Currently I am uploading the .indd files directly on the Indesign server to generate previews. Any idea on how to upload/download files from Indesign Server using their client interface. I am currently using their sampleclient and eventually plan to use the SOAP api for building a client. Any help appreciated.

 

Thanks,

CC

Package with InDesign Server

$
0
0

I am looking for a way to package files using InDesign Server (CC2014, running on a Windows 2012 server). I guess that it should be possible by scripting but I it is far away from my skills.

Thanks!

Numerous InDesign server crashes

$
0
0

We use InDesign Server CC 2014 (10.2.0.69) running on a Windows Server 2012 R2. We encounter a LOT of crashes and the crash reports refer mostly (99% of the events) to ntdll.dll as the faulting module, the other ones are MSVCR110.dll or StackHash.

What we tried: deactivate antivirus and running InDesign Server as Administrator. No luck.

 

Does it sound familiar to anyone?

Thanks!


How can i using eclipe to bulid sampleclient-java-soap?

$
0
0

it can not import “com.adobe.ns.InDesign.soap.IDSPScriptArg;”&“localhost.Service_wsdl.Service;”

i use windows7

93(CKNF3J8F9(KC$O%O~W3L.png

java soap call jsx 10 seconds to execute

$
0
0

Gsoapusejavaprogrambycallingjsxfile, calledIndesign Server CS5.5normally, but the executionis performed oncefor 10 secondsinIndesign Server CS6, I do not knowwhat is the reason?
Bydebug jaxfilesandparameters have beenpassed to the server, but the serverwaits10seconds beforeexecution.
Thank you!

-----------------------------

使用java程序通过soap调用jsx文件,在Indesign Server CS5.5中调用正常,但是在Indesign Server CS6中执行10秒钟执行一次,不知道是什么原因?

通过debug jax文件和参数已经传给服务器,但服务器等待10秒钟才执行。

谢谢!

JPEG single page export from multipage document

$
0
0
Hello Experts: I have a function to create a JPEG file given a page number from a multipage document. The problem is that InDesign Server will actually create JPEG files for all the pages -despite the given page range (I just want to create one). It appends the page number starting on page 2 (and will create the JPEG's desired file name for the first page in the document, and so on)

Here is my sample code:

Somewhere I will initialize the document to use it globally:
app.open(File(inDocumentPath));
currentDocument = app.documents[0];

Here is my current function:

function ExportAsQualityJPG(inSaveAsDocumentPath, inPageNumber)
{
app.jpegExportPreferences.jpegQuality = JPEGOptionsQuality.maximum;
app.jpegExportPreferences.resolution = 300;

pageName = currentDocument.pages.item(inPageNumber-1).name;
app.pdfExportPreferences.pageRange = pageName;
// app.jpegExportPreferences.pageString = pageName; --> Does not work

currentDocument.exportFile(ExportFormat.jpg, File(inSaveDocumentPath), app.pdfExportPresets.item("[High Quality Print]"));
}

I will do something like later:

ExportAsQualityJPG("//Documents/InDesign/Page2.jpg", 2);

As I mentioned above, it will actually create images for all pages in the document. For example, if the INDD doc has 3 pages, it will create these images:
Page2.jpg (actual page 1)
Page22.jpg (actual page 2)
Page23.jpg (actual page 3)

Any help or tip would be really appreciated.

Thanks,

G.O.

InDesign server using VB Dot Net

$
0
0
Hi,

I need help regarding using InDesign server using Visual Basic .Net.
I tried to generate a new document in the following ways:

Dim IdApp As InDesign.Application
Dim Doc As InDesign.Document
Dim DocP As InDesign.DocumentPreset


IdApp = CreateObject("InDesignServer.Application.CS3")

' This is the command that appears in the documentation:
' Adobe Indesign CS Scripting guide, page 11
'Doc = IdApp.Documents.Add
' The Result:
' Compiles but generates the following run time error:
'An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in mscorlib.dll
'Additional information: Invalid value for parameter 'DocumentPreset' of event 'Add'. Expected DocumentPreset, but received TRUE.
' In the following command I pass the parameters
' from the correct type in the correct order.
' The runtime result is as if the DocumentPreset
' parameter is the first and not the second
Doc = IdApp.Documents.Add(False, DocP)
' The Result:
'An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in mscorlib.dll
'Additional information: Invalid value for parameter 'DocumentPreset' of event 'Add'. Expected DocumentPreset, but received FALSE.
' I tried passing the parameters in reverse order
Doc = IdApp.Documents.Add(DocP, False)
' Result
' Compile error:
' error BC30311: Value of type 'InDesign.DocumentPreset' cannot be converted to 'Boolean'.

Besides these methods, I saw at the InDesign Java documentation that in non-scripting languages, as Visual Basic
parameters cannot be omitted.
At Java, the class OptArg is provided in order to supply such parameters.
I couldn't find the corresponding class for Visual Basic.

Thanks in advance for your help,
C

Performance XML Import

$
0
0
Hi,
we are currently evaluating InDesign Server and did some tests with importing XML documents into a template. We are passing a JS script from the test client. We found that importing XML documents shows very poor performace. Is there any tips of how to speed this up ? Thanks

Stefan
Viewing all 20709 articles
Browse latest View live


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