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

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


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

Newbie issues compiling java soap sampleclient

$
0
0

Hi All,

 

I have searched the forums and internet for help with this to no avail.

 

My setup is Windows Server 2003 / Indesign Server CS5 / Coldfusion 9 / Apache 2 / PHP5

 

I intend to use the Java / Soap implementation to communicate with ID5... Unless anyone can think of a better way to implement with CF9 (i have found no info on the web)

 

I have a lot of experience in scripting inDesign, and coding Coldfusion, but pretty much no experience in Java or compiling Java...

 

I am trying to compile an run the 'sampleclient-java-soap' sample but keep getting the following error:

 

C:\Program Files\Adobe InDesign CS5 Server SDK\samples\sampleclient-java-soap\sc
ripts>sampleClient -host http://localhost:12345 c:\test.jsx

 

C:\Program Files\Adobe InDesign CS5 Server SDK\samples\sampleclient-java-soap\sc
ripts>java -classpath "..\lib\sampleclient-java-soap.jar;..\..\idsp-wsdl-java\li
b\idsp-wsdl-java.jar;..\..\..\external\axis-1_2_1\lib\axis.jar;..\..\..\external
\axis-1_2_1\lib\axis-ant.jar;..\..\..\external\axis-1_2_1\lib\commons-discovery-
0.2.jar;..\..\..\external\axis-1_2_1\lib\commons-logging-1.0.4.jar;..\..\..\exte
rnal\axis-1_2_1\lib\jaxrpc.jar;..\..\..\external\axis-1_2_1\lib\saaj.jar;..\..\.
.\external\axis-1_2_1\lib\wsdl4j-1.5.1.jar" com.adobe.ids.SampleClient -host http
://localhost:12345 c:\test.jsx
Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/rpc/Service

 

        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClassCond(Unknown Source)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        at java.security.SecureClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.access$000(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
Caused by: java.lang.ClassNotFoundException: javax.xml.rpc.Service
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        ... 12 more
Could not find the main class: com.adobe.ids.SampleClient.  Program will exit.

 

 

I first tried to compile with ANT, then with ECLIPSE (which i have no experience with) but still get the same error...

 

Please help... I know it's probably a newbie question in regards to Java but if someone can just point me in the right direction that would be great... From what i have deduced it is about the 'classpath' setting but in the sampleClient.bat batch file it explicitly defines the locations of the classes which from what i have read should make it work regardless ?

[CS5 Windows] LBQ crashes Java

$
0
0

Hi all,

 

I'm trying to follow the instructions in the "Working With Load Balancing and Queueing" document for CS5 server. I've run four instances of ID Server using the recommended CORBA parameters in that document. Then I started LBQ by running the "clover.cmd" batch file (after tweaking it a bit, because they forgot to set the JAVA_HOME path). All seems well.

 

However, when I ping the LBQ as recommended, by opening this URL:

 

http://localhost:8080/com.adobe.clover.application/api/GetVersion

 

I get a message that Java has crashed. Specifically, it says "Java(TM) Platform SE binary has stopped working." Then Windows helpfully offers to find a solution (I've never actually experienced Windows finding a solution, ever). Of course then the browser request times out, and we're back to using QuarkXPress.

 

This is using Windows Server 2008 R2 Standard, Service Pack 1 (say that fast, 3 times), and InDesign CS5 Server 7.0.0.355.

 

I thought perhaps the Java version was suspect, so I uninstalled it (both 32- and 64-bit versions) and installed fresh versions from www.java.com. Still the same problem. Then I thought, maybe it needs more memory, so I changed the command line -Xmx parameter from 512M to 1024M. Still the same problem.

 

The problem isn't InDesign Server, because it never actually gets to that point; it's in the LBQ Java code (I think) and/or some mystical Java configuration.

 

So I'm stumped. Has anyone successfully used Adobe's load balancing solution as documented?

 

Thanks in advance for any advice.

 

Regards,

Chuck Weger

InDesign Server on virtual machine

$
0
0

Hello all,

 

We are planning to install InDesign server 5 on virtual machine. Can anybody let me know if this ok to go ahead or are there any known issues

 

Thanks in advance.

 

Murthykb

Dead instances in corba mode on Mac OSX

$
0
0

Hello,

 

Since our transition to IDS CS5 we often experience that corba instances run into a dead-lock randomly.

With a dead instance, i mean that the process is still running, the ior file still exists and seems to be valid (the contentstring is the same as on startup), but the application object is lost. It occurs randomly somewhere during execution of our code and almost always on a different part of our code.

I can simulate this state of IndesignServer by running a corba instance on my MacBook Pro, closing the MBP and wait for about an hour. Then reopen it and trying to connect. Then i get:

org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No
       at com.sun.corba.se.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemExceptio n.java:2200)
       at com.sun.corba.se.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemExceptio n.java:2221)
       at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConne ctionImpl.java:205)
       at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConne ctionImpl.java:218)
       at com.sun.corba.se.impl.transport.SocketOrChannelContactInfoImpl.createConnection(SocketOrC hannelContactInfoImpl.java:101)
       at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.beginRequest(CorbaClientR equestDispatcherImpl.java:152)
       at com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.request(CorbaClientDelegateImpl.ja va:118)
       at org.omg.CORBA.portable.ObjectImpl._request(ObjectImpl.java:431)
       at com.adobe.ids.basics._ApplicationStub.updateFonts(Unknown Source)
       at be.nss.ids.advit.AdvitSession.<init>(AdvitSession.java:98)
       at be.nss.documentserver.controller.action.OpenSubDocumentAction.execute(OpenSubDocumentActi on.java:50)
       at be.nss.documentserver.controller.ActionQueue$ActionThread.run(ActionQueue.java:231)
Caused by: java.lang.NullPointerException
       at com.sun.corba.se.impl.transport.DefaultSocketFactoryImpl.createSocket(DefaultSocketFactor yImpl.java:59)
       at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConne ctionImpl.java:188)
       ... 9 more

This is exactly what i get on our customers servers (which don't "go to sleep" obviously). Just setting my MacBook Pro to a very short sleep time (1 min.) doesn't invoke this error. This makes it hard to simulate the problem. Apparently the sleep invoked by closing the MBP and waiting an hour isn't the same as putting it asleep, all parameters on, after 1 min.

All OSX versions are 10.6

So i have two questions:

1) What are the possible causes of those dead-locks? Errors in our code (both java and our own IDS plugin) normally cause a real instance crash which is traceable.

2) Is there a way to re-establish a connection to a dead instance?

 

Thanks in advance for any input!

 

Bart Devos.

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

InDesign fails to render "Futura Std Book Oblique" font

$
0
0

Hello,

 

 

We are facing some issues with the adobe Font Family "Futura Std" [especially Futura Std Book Oblique] font in InDesign.

InDesign is not able to resolve the "Italic" font style i.e "Futura Std Book Oblique" font.

 

please follow the following simple steps to reproduce this issue.

  1. Creat a new InDesign document and select a text tool to enter some text.
  2. Enter some text in text area with font family set to "Times New Roman" (like "Regular ItalicBoldBoldItalic") and apply the different font styles to each text (accordingly).
  3. Then select entire text and change the font Family to "Futura Std".
  4. Now you can see that the "Futura Std Book Oblique" font for text "Italic" from the above step is not applied, it is incorrectly interpreted as "Futura Std [Italic]"

 

Is this an Adobe InDesign issue (unable to resolve "Times New Roman - Italic"  to "Futura Std - Book Oblique") or the "Futura Std" font issue itself ? can you please provide some more information on, why this particular font is not functioning as expected in Adobe InDesign ?

 

Thanks in advance.


ESTK not connecting to InDesign Server

$
0
0

Hello All,

 

I'm a newbie to write JS for InDesign Server and I'm getting the error like 'Cannot launch target Adobe InDesign CS6 Server!' while connecting the InDesign Server using ESTK (as shown below), could anyone help me to resolve this feedback?ESTK_InDesignServerTargetError.jpg

 

Thanks,

 

Praveen

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 CS6 on OSX slowed down

$
0
0

I have CS6 installation on Mac Pro 4,1 quad core with 16GB of ram with OSX 10.9.

Only four instances are working now, and there are no other processes except one CS4 on this machine.

 

After few months server have problem with speed, sometimes server is working very slow. Changing content in one text frame, changing style takes more than one minute. Content is short, few characters and documents have less than 100 text frames.

This same operation normally takes few ms.

 

CS4 instance on this machine works fine.

 

Regards

 

Piotr

Problems with reading font

$
0
0

Hi everyone!

We are working with InDesign Server CS4 and there is a strange problem. I have a document with some different Frutiger Fonts (black, italic, ... ). The fonts are installed on the System and when I open the document with InDesign it's working fine and InDesign finds the necessary fonts.

When I read the same document with InDesign Server there comes an Exception (com.adobe.ids.IdsException: IDL:com/adobe/ids/IdsException:1.0).

 

I use following code:

Font font = doc.getNthChildFont(x);
String fontName = font.getName();                         // working
String fontLocation = font.getLocation();                // --> exception
String fontPostScriptName = font.getPostScriptName();     // working
String fontStyleName = font.getFontStyleName();          // --> exception

 

Usually this works but somehow not with one document.

I already created a new Document with the same fonts and then .getLocation() works fine and finds the font on the system.

 

Does someone know why this could happen?


Many Thanks and Regards!

CS4: XMP info missing for placed images

$
0
0

Hi all,

 

in Documents produced on our InDesign Servers, the XMP information is missing from placed images, and also not available to later PDF export.

If we re-link the same images via InDesign Desktop, the XMP information is loaded.

 

Does anybody know the problem, is there even any matching InDesign Server configuration flag or alike?

 

Thanks,

Dirk

Start IDS CS5.5 at reboot with IndesignServerServices

$
0
0

Screen shot 2011-06-08 at 4.50.49 PM.png

We make use of InDesign Server Windows Service and InDesign Server Console

 

Management snap-in to automatically load InDesignServer. In the current setup
InDesignServer.exe runs yet the InDesignServer.com process doesn't seem to load.

Then on running a JavaScript file via the ExtendScript Toolkit editor the Application

 

tell us InDesignServer CS5.5 isn't running. See attachments for screenshots.

It is possible to start IDS command line, and by ExtendScript Toolkit, but Windows

Service only launches the indesignserver.exe

 

Screen shot 2011-06-08 at 4.55.05 PM.png

Screen shot 2011-06-08 at 4.51.28 PM.png

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);

  }

}


IDML spreads

$
0
0

Hello. I'm Alfred. I have some question to ask.

If I have 1 spreads that spare page 2 and page 3.

 

In page 2, i have one picture and one text. Let's say that my picture name is ball1.jpg and my text is "Hello page 2".

In page 3, i also have one picture and one text. At this page, my picture name is ball2.jpg and the is "Hello page 3".

 

Each page has their own name such as <page self="u103" ... > or <page self="u104" ... >.

Below the page, there are a two rectangle tag (for ball1.jpg and ball2.jpg) and two textframe tag.

 

And the question is, how do i know that ball1.jpg and "Hello page 2" are refer to page with name "u103" and ball2.jpg and "Hello page 3" are refer to page with name "u104"?

Is there any ID that show up or what?? thanks before!

Passing arguments to jsx file externally

$
0
0

Hi,

 

I have a script (javascript, jsx) that will parse content from InDesign (.indd) documents using InDesignServer. I want to be able to pass the filename, as well as the path of the indesign file as parameters to this script.

 

I have tried this vbs solution:

 

==========================

runjavascript.vbs

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

Option Explicit

On Error Resume Next


Dim appRef

Dim javaScriptFile


Set appRef = CreateObject( "Photoshop.Application" )


appRef.BringToFront


javaScriptFile = "C:\myscript\test.jsx"


call appRef.DoJavaScriptFile( javaScriptFile, Array(Array("one","two"), Array("three")), 1)


------

DoJavaScriptFile takes 3 params, the first being the script, the 2nd is an array of params. In my example, you can have an array of arrays of params. When you receive params from javascript side, it will see param 0 as (one, two), param 1 is (three). For most people, simple case is fine: eg:


call appRef.DoJavaScriptFile( javaScriptFile, Array("one","two", "three"), 1)


The javascript would look like this:


test.jsx

---------

#target photoshop


if (arguments.length > 0)

alert("ARGUMENT 0 = " + arguments[0]);


----

from the jsx side, there's a magical variable called "arguments" of array type. When you pass variables in, the 1st one will be arguments[0], the next one would be arguments[1], and so forth.


To execute this from command line, (assuming everything lives in c:\myscript):


cscript c:\myscript\runjavascript.vbs

 

 

==========================

 

This approach does not work, because I get an error from the CreateObject function, it cannot create an object for InDesignServer.Application.

 

Ideally, I want to be able to pass arguments from a python script to a jsx script.

 

Setup:

InDesign CS4 .indd documents

Win2k8 server

JavaScript (via ExtendScript toolkit)

InDesignServer CS5.5 (32bit)

SmartLayout plugin

InDesign CS4 Server Scripting duplicate()

$
0
0

Hi,

 

Just wondering anyone would be able to help me with this.
I am having problem with using duplicate() in a InDesign CS4 Server Javascript. It locks the InDesign instance while running the script and we have to unlock it by restarting the Server. Below is the offended script. Do anyone have any idea what is causing this? My head hurts...

 

var inlines = myDocument.stories.everyItem().pageItems.everyItem().getElements();

myDocument.viewPreferences.horizontalMeasurementUnits = MeasurementUnits.millimeters;
myDocument.viewPreferences.verticalMeasurementUnits = MeasurementUnits.millimeters;
myDocument.viewPreferences.rulerOrigin = RulerOrigin.pageOrigin;

var myPage = myDocument.pages.item(0);
var myX = myPage.marginPreferences.left;
var myY = myPage.marginPreferences.top;

          if(inlines.length==1){
                 inlines[0].duplicate([myX+37.75,myY+9.5]);  
            }

 

I have tried removed the x and y coordinates and run the script again with only duplicate(); it is still breaking the server. Can anyone help???? Hellllpppppp....

 

Cheers

Failed to export the JPEG file: Maximum size exceeded

$
0
0

When exporting a page to JPEG you might get the following error message:

 

"Failed to export the JPEG file: Maximum size exceeded. Try decreasing the resolution."

 

After some research I believe this maximum size for the resulting JPEG is set to 32767 pixels. This is the maximum value of a signed short.

Anyone can verify if this is correct?

 

 

 

Another similar error message you might get is:

 

"Failed to export the JPEG file: Not enough memory. Try decreasing the resolution."

 

I would like to know how this limit is calculated.

 

 

Test case:

 

InDesign document of 2000 mm x 2000 mm

    

    Export JPEG, format method 'BASELINE', dpi 416

          -> result preview of 32756 pixels     (2000 mm = 78,740157 inch * 416 dpi = 32756 pixels)

          => preview is exported

     Export JPEG, format method 'BASELINE', dpi 417

          -> "Failed to export the JPEG file: Maximum size exceeded. Try decreasing the resolution."

          => max size exceeded

 

     Export JPEG, format method 'PROGRESSIVE', dpi 416

          -> "Failed to export the JPEG file: Not enough memory. Try decreasing the resolution."

          => Within the max size boundaries, but not within the max memory boundaries. How is this calculated?

     Export JPEG, format method 'PROGRESSIVE', dpi 225

          -> "Failed to export the JPEG file: Not enough memory. Try decreasing the resolution."

          => Within the max size boundaries, but not within the max memory boundaries. How is this calculated?

     Export JPEG, format method 'PROGRESSIVE', dpi 224

          => preview is exported

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

Viewing all 20709 articles
Browse latest View live


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