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

XML to News E-Edition PDF

$
0
0

How do i create e-edition pdf (looks similar to newspaper) on the fly. I have a java based web application that need to create pdf looks similar to newspaper from bunch of articles. How do automate this thing. Do i need to work with Desktop Indesign or What solution fit my need. Help needed urgently.


InDesign Server Custom Dictionary Management

$
0
0

Hi,

 

I have an InDesign Server with 8 ports running in one Windows Server. Currently, I have assigned 4 InDesign ports for UK client, and 4 InDesign ports for US client.

 

How can I configure the ports in such way 4 ports to use UK Dictionary always, and US Dictionary for the rest of ports. Especially, I have customer defined dictionaries to use.

 

Please advise how to achieve this.

InDesign Server Running Samples trouble

$
0
0

Hi all,

 

I am having troubles to run the sdk samples properly. I downloaded the trial version and "licenced" with a prerelase serial that I have been given as a member of the prerelase program. My intention is not to build any commercial system, I just wish I can have InDesign Server at hand so I can master my skills onto it.

 

So now I am trying to run the sample code as indicated in the sdk :

 

//Running the server with terminal

InDesignServer -port 12345

 

//Exceuting sampleclient

/Applications/Adobe\ InDesign\ CS6\ Server/InDesignServer.command sampleclient -host localhost:12345 /Applications/Adobe\ InDesign\ CS6\ Server/myScript.jsx

 

I am getting an licence error message (rawly translated from French to English): "Your version only allows one single use. Please contact your reseller for an update"

I am guessing the prerelease licence has limited the use of the server.

 

So my question is : how could one get his hands on a unlocked NFR licence for testing purposes ? I mean it could stamp a big red mark, only output jpgs, I really don't care. What I care is getting the idea and mechanisms of driving IDS with PHP/SOAP. As a consultant, I may have to promote and sell InDesign Server to my clients but it would help if could set demos and have a whole understanding of technologies and costs implied.  Is that somehow possible ? I hope so because I work with Enfocus and Callas and they all provide NFR keys to resellers and promoters. It's just making sense to me.

 

Hope I am not misunderstood in my intentions,

 

TIA for your inputs,

 

Loïc

Clover is not responding to any command

$
0
0

Hi

 

I'm running "Adobe InDesign Server CC 2014 trial" on Windows Server 2012 R2 (All 64 bit)

As I started Clover after running indesign server, I sent command via RESTful; but clover seems inactive to receive commands.

 

(I checked many times IOR and IDSQUEUE properties file, seems no mistakes.)

 

I can successfully run the same in my pc. Please find the attached screenshot of "Clover".

Could anyone help me to understand the issue / suggest a troubleshooting method.

 

InDesignServer-CloverIssue.png

Thank you

Ays.Hakkim

Cannot save "Untitled-4" under a new name.

$
0
0
I'm getting this error trying to run the HelloWorld.jsx Script on a Windows Server 2003 VM machine inside OSX.

I've been working with the server with no problems, having been able to test scripts to import XML, and export in various formats..

I had just written a Windows App test client in C# .Net, the aim being to develop an Object Pool to control multiple instances, and was going to use HelloWorld as the test script... and now this.

The same script runs perfectly well from the ActionScript IDE, both in the Windows Server and on OSX.

InDesign Server is running as a Windows Service.
I can view the WSDL on http://localhost:1978/?wsdl ... fine.

Any ideas?

Creating a template to generate the PDF

$
0
0

Hi,

 

I am newbie to Indesign, i have a task to generate the XML template , which should contain the respective tags for report generation with various layout, fonts, styles, etc. Whether it is possible to auto generate the XML through Indesign CS4 tool with the above the features. For example i have a column "EmpId" which should contain the following paragraph style:-

 

<EmpId>

<ParagraphStyle>
          <SpaceAfter>0</SpaceAfter>
          <LineSpacing>11</LineSpacing>
          <LineSpacingRule>wdLineSpaceExactly</LineSpacingRule>
        </ParagraphStyle>

</EmpId>

 

currently i am manually doing this, whether Indesign CS4 will generate these tags in a XML templHelloate by adding this feature from the tool or drag and drop ? so finally i can use the Java Adobe API to load this XML template and generate a PDF. I have done some research on this and i am unable to find a suitable examples .

I have lot of queries :-

 

1) Please do provide some examples also, to generate the PDF using Java Adobe API why we need a ORB ?

2) Whether it is a must to connect to the server? Currently i have downloaded Server SDK which contains the API to generate the code for PDF.

3) But in the HelloWorld example what i saw is we need to pass a IOR file to generate the PDF doc. So, whenever we need to generate a PDF , we need to pass the IOR file as well? So, that it will use the ORB to talk to server. Whether i need to install the Indesign server separately? I have downloaded only the SDK?

4) For HelloWorld program what is the IOR file i can pass, please do provide the sample IOR file which may work so that i can get some idea?

 

Please do shed some light into this as it is really urgent.

 

Thanks,

Rithu

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

InDesign Server Plugin (C++) Plugin SDK: How to get the name of a frame?

$
0
0

Hi guys,

 

after some hours of digging with no luck and starting to think of dirty workarounds, I decided to ask

 

In JSX, this would be "pageItem.name", but how to do this in a C++ Plugin?

 

Any tips are appreciated!


LBQ returns blank page (and HTTP Error 400).

$
0
0

So a little background -

 

We run InDesign CS6 on 2 different servers. Both servers are Windows 2008 R2. CS6 server has been running smoothly for a few years now. We're running both in a multi-instance environment and using the Adobe LBQ client to manage the queue and jobs.

 

Recently I built a new machine to test CC14 server. I noticed that the basic informationg regarding the LBQ was the same so I built out a couple of instances like before and tried to run the LBQ client (clover.cmd).

 

It starts to load and seems to load completely but when you try to go to the queue site (localhost:8080) it returns a blank page and an HTTP 400 error. Nothing else happens. The instances of Indesign are running fine but the LBQ is not.

 

My servers I've tried this on are the following:

 

Windows 2012 R2

Windows 2008 R2

 

I have even gone back to a clean VM of Windows 2008 R2 and even migrated back to InDesign CS6 and still the same issue!

 

The only thing I can think of is that the JRE is different. Originally our servers were setup with JRE 1.7 but they've auto-upgraded and are running 1.8. My new servers have 1.8 from the beginning.

 

I'm really at a loss here as to what might be happening. Spent last 3 days trying to puzzle things through to isolate any differences in configs, settings, versions, etc.

 

Any thoughts?in

How to run Indesign CS3 as a Service with Port number

$
0
0
Hello all,

I would like to run the InDesign CS3 Server as a service on Windows. It seems that after installing the Server it automatically installs as a service. But where can I assign the port number. If under Services properties of InDesign Server under Parameters I mention -port 1050 on Ok button it removes the parameter information.

I am doing right or is there some other way to start the Server as Service with Port number.

Thank you all in advance.

Regards
Farzana.

[IDSW]: Exiting InDesign Server

$
0
0
Hello Forum,

I'm a newbie in the InDesign Server world, and my question may be a very silly one.

I run ID Server from Windows console. If I exit it with Ctrl-C, my strartup/shutdown services get called. If I just close the console window, the shutdown service is not called. Has anybody come across the problem? Is there a "moral" and portable way to solve it?

I noticed that when I just close the console window, InDesign temporary files are not deleted from the temporary directory. Maybe this is just a bug in InDesign Server, or InDesign server is not supposed to quit normally in this case at all...

Thank you,
Pavel.

Problem adding image to document

$
0
0
I am adding a Rectangle to a document and placing a JPEG file. The result opens in InDesign and shows a rectangle that is filled with dark grey. The links palette shows the jpeg file and notes it to be current. If I re-link the graphic it shows correctly. What do I need to do so the image shows after the doc is created?

private void IndCreateFrame(double xc, double yc, double w, double d, String Layername, String frameType, long frameColCount, String imagePath)
{
Rectangle newFrame = null;
ObjectStyle myObjectStyle = null;
VariableType strokeType = new VariableType();
strokeType.asString("Solid");
Unit strokeWeight = new Unit();
strokeWeight.asDouble(2.5);

try
{
int oldH = myApp.getViewPreferences().getHorizontalMeasurementUnits();
int oldV = myApp.getViewPreferences().getVerticalMeasurementUnits();
myApp.getViewPreferences().setHorizontalMeasurementUnits(com.adobe.ids.enums.kMeasurement UnitsPoints.value);
myApp.getViewPreferences().setVerticalMeasurementUnits(com.adobe.ids.enums.kMeasurementUn itsPoints.value);

PDFPlacePreference myPdfPrefs = myApp.getPDFPlacePreferences();
myPdfPrefs.setPDFCrop(com.adobe.ids.enums.kPDFCropCropMedia.value);

newFrame = myPage.addRectangle(OptArg.noLayer(),
OptArg.makeLocationOptionsEnum(kLocationOptionsUnknown.value),
OptArg.noVariableType());

newFrame.setContentType(com.adobe.ids.enums.kContentTypeGraphicType.value);
System.out.println("Place file " + imagePath);

newFrame.setContentType(com.adobe.ids.enums.kContentTypeGraphicType.value);

VariableType[] placedItems = newFrame.place(imagePath);

Graphic[] myGraphics = newFrame.getAllChildGraphics();

System.err.println("GRAPHIC COUNT - " + myGraphics.length);
System.out.println("Set frame bounds to " + yc + ", " + xc + ", " + (yc + d) + ", " + (xc + w));
newFrame.setGeometricBounds(UnitUtils.createDouble(new double[]{
yc, xc, yc + d, xc + w}));
boolean needStyle = true;
try
{
myObjectStyle = myDoc.getNamedChildObjectStyle("GraphicFrame");
if (myObjectStyle != null) needStyle = false;
}
catch (IdsException idEx)
{
System.err.println("We got an exception looking for the GraphicFrame Object Style.");
}
if (needStyle == true)
{
myObjectStyle = myDoc.addObjectStyle();
myObjectStyle.setName("GraphicFrame");
System.err.println("Current enable stroke value is " + myObjectStyle.getEnableStroke());
}
myObjectStyle.setEnableStroke(true);
myObjectStyle.setStrokeWeight(strokeWeight);
myObjectStyle.setStrokeType(strokeType);
try
{
newFrame.applyObjectStyle(myObjectStyle, new OptBoolean(false, false), new OptBoolean(false, false));
}
catch (Exception ex)
{
ex.printStackTrace();
}
newFrame.fit(kFitOptionsContentToFrame.value);
myApp.getViewPreferences().setHorizontalMeasurementUnits(oldH); myApp.getViewPreferences().setVerticalMeasurementUnits(oldV);
}
catch (Exception ex)
{
ex.printStackTrace();
}
}

InDesign CS4 Server

$
0
0
Can this version be run on Windows XP? We are able to run the CS3 Server version on Windows XP and were wondering if CS4 Server can run on XP.

Thanks.

[IDS Win]How to flush Indesign server.

$
0
0
Hi All,
I am using Indesign server to create documents which contains text, images & tables. My job is to create & export documents to pdf. Document are sometimes contains 300 plus pages. And cs2 server process this jobs one after the other in queue ..may be 100 jobs in a queue. Here after certain amount of time a 'out of memory' error comes up and Indesign server gets crashed(its around after processing 30-40 jobs).
I have taken care to delete all allocated meomary in my program through New- delete pair. Still after each job allocated memory to Indesign keeps increasing.
Is there any way so that I can purge memory from Indesign after my job complition? I tried to use 'PurgeMemory' over IDocumentList but its not that effective.
Any suggestions are most welcommed!

Thanks,
Rahul.

Where is InDesign Server CS2 SDK?

$
0
0
Hello,

I downloaded the InDesign Server CS2 software through the Adobe On-line Licensing website, but it doesn't include the SDK.

Adobe's website does offer the CS3 Server SDK, but the CS2 Server SDK is not listed for download. Is there another place where I can download it from?
I'm currently not a member of the Adobe Partner Program.

Thanks.

Debugging Javascript on InDesign CS3 Server

$
0
0
I, like most developers, need to be able to debug my programs. Thus far I have been opening a file and writing to it if I want to see any debug messages. It looks like this...

my_log = createLogFile("filename",app,true);
add_to_log(my_log, debug_string);
my_log.execute();

This would create a file called "filename.txt", add the value of debug_string to the my_log object, then write the log to a file using execute.

However, this approach is not very helpful when doing loops for example. If I have a loop that is breaking my script and I want to check a value that is changing inside a loop I have to create a file, add the error to the log, and execute (write) the log for each pass in the loop. For instance:

for (var i = 0; i < some_array.length; i++) {
my_log = createLogFile("debug_log"+i, app, true);
add_to_log(my_log, some_array[i]);
my_log.execute();
...
whatever is normally in here
...
}

This is the only way I can figure out which item in my array is breaking the script. So, my ultimate question is this:

How do I debug an InDesign server javascript program? Can I write to STDOUT, or STDERR? Some other way? Thanks for any and all help.

_ Sean

Exporting an .indd file to PostScript

$
0
0
Using the CS3 Server CORBA API, is there a way to export an InDesign file to PostScript? I see examples in the SDK snippets foloder to export to EPS and PDF, but not to PostScript.

Thanks,
Jennifer

Hyperlinks in CS2 documents won't work after document is opened in CS4.

$
0
0

We have several products that were developed in InDesign CS2, all loaded with hyperlinks. We had made PDFs from these documents using Acrobat 8.0 and the internal "chapter" links worked fine. We then upgraded to Adobe Acrobat 9.0, and still the PDF links worked.  Then we upgraded our InDesign to CS4. PDFs were made in Adobe 9.0, but links didn't work! Acrobat seemed to be looking for a "default" link designation:  Our link path consisted of the server name (mapped to our "P:" drive), followed with specific folder and file location for the link. The default location Adobe seemed to be looking for was "I:\data\ (followed by the correct folder and file location)."  One person tried to outsmart this default designation by actually putting our files on our own "I:" drive, to match the default link being produced.  In return we got a duplicate link designation: "I:\data\ (followed by the correct folder and file location)\data (followed by the correct folder and file location)" -- absolutely insane!

I'm a "non-techie" so please bear with me.  Several questions come to mind:

1.       Is there a problem with our server "mapping" and why would Adobe reject our "P:" server ID and throw in an "I:\data" in its place?  Would there be certain alpha server designations that Adobe doesn't play well with, or local servers it has trouble reading?

2.       Are there compatibility issues caused by upgrading from InDesign CS2, skipping CS3, and going on to a CS4 upgrade?  If we had an interim upgrade to CS3, would CS2 links have had a problem?

3.       there be problems with the way our ID CS4 and Adobe Acrobat 9.0 packages were installed?  If IT used an installation "Wizard" and a basic install for each, should there have been specific requirements (or plugins) enabled that would accommodate our hyperlink needs?

With no solution at hand, we're forced to manually remake all our product links in our upgraded CS4 documents.  Should we fear further InDesign upgrades?  Is there a magic pill or patch that would cure our hyperlinking woes?

Please help!

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

8/20/09

 

NOTE:  I just read about a problem a user was having with hyperlinks and Adobe Acrobat 7.0  I realize the scenario is a bit different, but the problem sounds similar:

Acrobat 7.0 and Adobe Reader 7.0 search only web servers for PDF files that are linked to Office documents via hyperlinks. Acrobat 7.0.5 and Adobe Reader 7.0.5 search web servers, local drives, and shared drives for linked PDF files.

I'm wondering if possibly the same thing isn't happening with 9.0.  Perhaps that's why we keep seeing the default "I:\data" link location popping up.  If this "is" the case, does anyone know of an upgrade, patch, or possibly a plug-in or setting that would let 9.0 look for links on local drives?

InDesignServer Service not starting on Windows Server 2003 (32bit & 64 bit)

$
0
0

Note: this issue is different from this thread on a similar issue.

 

This problem has plagued me for weeks and I finally give up. InDesign Server installs successfully and the InDesignServerService starts, but the server does not run. I can only run the server from the command line. I've followed these installation instructions but run into the following problems:

 

1. installing by the command line: InDesignServerService /install fails and produces the following error log:

 

Installing service InDesignServerService...

Creating EventLog source InDesignServerService in log Application...

Rolling back assembly 'E:\Program Files\Adobe InDesign CS4 Server\InDesignServerService.exe'.

Affected parameters are:

   logtoconsole =

   assemblypath = E:\Program Files\Adobe InDesign CS4 Server\InDesignServerService.exe

   logfile = E:\Program Files\Adobe InDesign CS4 Server\InDesignServerService.InstallLog

Restoring event log to previous state for source InDesignServerService.

2. I cannot install or load the snap-in to MMC. When I try to install regsvr32 InDesignServerMMC.dll it cannot be found (as it's not in the InDesign Server directory). However InDesignServerMMC64.dll is in there and I was able to load the snap-in using regsvr32 InDesignServerMMC.dll, but the server still only runs when being started from the command line.

 

As I mentioned, InDesign Server runs fine when I have an active command line window open and run InDesignServer, but the moment I close the command line window, the server shuts down. Any ideas?

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

Viewing all 20709 articles
Browse latest View live


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