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

InDesign Server CC - AppleScript - activate document

$
0
0

We have an issue to run our AppleScripts with the CC version. It seems that something has changed regarding how to activate ("talk to") a document in InDesign Server CC.

This script changes the behaviour of printing inks in ink manager. With CS5, it runs, with CC i got an error.

 

tell application "Adobe InDesign Server"

   

    activate

   

    set myDocument to document 1

   

    tell myDocument

       

        set docInks to inks

       

        repeat with x from 1 to count docInks

           

            if is process ink of item x of docInks is false then

               

                set convert to process of item x of docInks to true

               

            end if

           

        end repeat

       

    end tell

   

end tell

 

 

I assume the line

set myDocument to document 1

works no longer.

Which is the right expression?


Font woes; also asked in scripting.

$
0
0

Hi,

I am having issues using a valid font in an automated server system, I've created a thread in scripting here; https://forums.adobe.com/thread/1803689

If any of you have any insight into this kind of issue, I would love to hear it!

Thanks,

G

Multiple locations, WAN connected offices and Adobe InDesign.

$
0
0

We have two offices that use Adobe InDesign. The central server is located in location A. Location B uses the mapped drives from location A in order to do there work inside of InDesign. The connection between the two offices are VPN tunnels over the WAN. The users in location B are constantly complaining about speeds inside of Abode InDesign and what we are needing to find is if Adobe InDesign Server is like Revit server in the way that it will act as an accelerator/host relationship between the two locations or if we are barking up the wrong tree. And if I am correct in my assumption that InDesign does act in a manor of Host/Accelerator then what your that infrastructure look like?

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 CS5 Server SDK

$
0
0

Hi,

 

I notice that InDesign CS5 Server is available from the partner download area.  However, I haven't been able to find the InDesign CS5 Server SDK; I've looked in the partner download area and also on http://www.adobe.com/devnet/indesign/sdk/index.html. That page has the CS4 Product SDK and the CS4 Server SDK but for CS5 it only has the Products SDK (which doesn't contain InDesignServerAPI.jar).

 

Where can I get the CS5 Server SDK, or whatever is required to compile Java programs that use InDesign CS5 Server?  Is it released yet?

 

Thanks,

 

Francis

Upgrading from CS6 to CC 2014.

$
0
0

Hi all,

 

We have a couple of production CS6 servers that are processing dynamic IDML files into final .pdf or .indd (ready for print) packages. We're not doing anything fairly custom besides multiple pages, dynamic tagging, etc.

 

I would like to upgrade from CS6 to CC2014. Are there any major steps/hurdles to do so? I'm not finding a lot of 2014 documentation out there on this either. Oh, we're using LBQ to load balance and queue up the jobs to our multi-instance version of CS6.

How to access the objects without selection in InDesign server?

$
0
0

Hello All,

 

I'd like to have the below details in JS using InDesign Server:

 

(1) Selection of a textframe

(2) Selection of a graphics

(3) Selection of grouped frames

 

Please advise.

 

Thanks,

 

Praveen

Passing a param to a JavaScript in Java using myApp.doScript

$
0
0
Hi!

I'm trying to pass a very simple string parameter to a JavaScript within my Java code. I am using the example DoRunScript.java that was given in the CS3 SDK:

... (here's a snippet of the code)

//call the javascript, passing in the arguments
VariableType returnValue = myApp.doScript (
VariableTypeUtils.createFile (scriptFilePath),
OptArg.makeScriptLanguageEnum (kScriptLanguageJavascript.value), argSeq);

My question is how do I retrieve the value of the parameter in my Javascript? I gather that I must use something like the following, but I'm not sure what to use as the name.

var myArg = app.scriptArgs.get ("name");

Am I going about this the wrong way? Eventually, I would like to pass an array or an ArrayList. Could I do this?

Thanks for your help!
Jennifer

Problem wit Java via ORB: org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No

$
0
0
I try to use the Java API to drive an InDesign Server CS3.<br />I have set up Windows Services for two InDesign Server instances, both using diffenrent prots and different IOR Files.<br /><br />When I try to connect the Adobe Java SampleClient (from teh SDK. Adobe InDesign CS3 Server SDK\samples\sampleclient-java-corba) I can connet to InDesign one or two times.<br /><br />After that i get an Exception on the next try:<br />org.omg.CORBA.COMM_FAILURE:   vmcid: SUN  minor code: 201  completed: No<br /><br />same thin occours when I use the precompiled java program musing the sampleclient.bat.<br /><br />One strange thing could be encountered here. I definitely do not use port: 2512" as mentioned in the error message. I use port 2267n and it works for just two client calls (after each restart of the InDesign Service).<br /><br />any hints?<br />What ist the thing about OmniOrb? Do I have to install somthing except the adobe InDeign Server and the SDK?<br /><br />many thanks in advance<br />Joachim<br /><br />sampleclient.bat's output:<br />--------------------<br />C:\Programme\Adobe\Adobe InDesign CS3 Server SDK\samples\sampleclient-java-corba<br />\scripts>java -classpath "..\lib\sampleclient-java-corba.jar;..\..\..\lib\InDesi<br />gnServerAPI.jar" com.adobe.ids.SampleClient -iorfile "c:\Temp\InDesignCS3Server2267ior.txt" "C:\Workshops\InDesignServer\WWPScripts\SavePageAsJpg.jsx"<br />28.10.2008 17:21:36 com.sun.corba.se.impl.transport.SocketOrChannelConnectionImp<br />l <init><br />WARNUNG: "IOP00410201: (COMM_FAILURE) Connection failure: socketType: IIOP_CLEAR<br />_TEXT; hostname: 192.168.1.152; port: 2512"<br />org.omg.CORBA.COMM_FAILURE:   vmcid: SUN  minor code: 201  completed: No<br />        at com.sun.corba.se.impl.logging.ORBUtilSystemException.connectFailure(U<br />nknown Source)<br />        at com.sun.corba.se.impl.logging.ORBUtilSystemException.connectFailure(U<br />nknown Source)<br />        at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.<init>(<br />Unknown Source)<br />        at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.<init>(<br />Unknown Source)<br />        at com.sun.corba.se.impl.transport.SocketOrChannelContactInfoImpl.create<br />Connection(Unknown Source)<br />        at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.begin<br />Request(Unknown Source)<br />        at com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.request(Unknow<br />n Source)<br />        at com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.is_a(Unknown S<br />ource)<br />        at org.omg.CORBA.portable.ObjectImpl._is_a(Unknown Source)<br />        at com.adobe.ids.basics.ApplicationHelper.narrow(Unknown Source)<br />        at com.adobe.ids.SampleClient.main(Unknown Source)<br />Caused by: java.net.ConnectException: Connection refused: connect<br />        at sun.nio.ch.Net.connect(Native Method)<br />        at sun.nio.ch.SocketChannelImpl.connect(Unknown Source)<br />        at java.nio.channels.SocketChannel.open(Unknown Source)<br />        at com.sun.corba.se.impl.transport.DefaultSocketFactoryImpl.createSocket<br />(Unknown Source)<br />        ... 9 more

[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.

Discuss Technical Introduction to InDesign Server

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

IDS on WinServer 2008 Location of joboptions files

$
0
0

I am attempting to find where to put my joboption file on Windows Server 2008. Indesign Desktop is not installed on this server, nor can it be. I tried

C:\Users\Administrator\AppData\Roaming\Adobe\Adobe PDF\Settings

 

The job option file I am attempting to use is: PDFX1a 2001.joboptions

 

but my javascript that works locally does not on the server. My function call is:

 

mydoc.exportFile(ExportFormat.pdfType, File(file), app.pdfExportPresets.item("[PDF/X-1a:2001]"));

 

but that results in an error as the item is not found.

 

Any help would be appreciated.

 

Thanks,

 

Mike

Automate Indesign With VB.NET

$
0
0

Hi,

 

I need some advice from you. I will explain my current condition and suggest me the solution.

 

Currently We are using PageMaker 6.5 to create the packages, these packages contains all the PDF Documents links with Table of Contents.

 

using VB6 applicaiton, we are opening the created package file and printing the package file and closing the package file using DDE commands.

 

I wants to replicate the same thing in VB.NET. we are planning to replace Pagemaker 6.5 with some other product. We thought we might use Indesign.

Please suggest , how to automate the Indesign with VB.NET, and Is it suitable replacement for Pagemaker 6.6?

 

Thanks,

Sreenivas

64 bit

$
0
0

I'm going to be installing Server for a client (my first one). Quite obviosly, I'd like to install the 64 bit Windows version.

 

Does anyone have any tips regarding "gotchas" on 64 bit as opposed to 32 bit? Are there 64 bit specific bugs? Other issues to be aware of?

 

TIA!

Harbs


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

Issue in setting bleed to a document as InDesign CS5 Server plugin

$
0
0

Hello all,

I am creating a new document in InDesign CS5 Server through C++ Plugin and trying to set bleed to the document. I have used the command to set bleed. But it doesn't seem to apply properly. I check in the debug version also. It show success to the command but when I open the document there is no bleed applied. I am using following command.

 

 

InterfacePtr<ICommand> pageSetupPrefsCmd(CmdUtils::CreateCommand(kSetPageSetupPrefsCmdBoss));
if(pageSetupPrefsCmd == nil)
{
CAlert::ErrorAlert("Error in SetDocumentBleed function, pageSetupPrefsCmd is nil.");
break;
}


InterfacePtr<IDocSetupCmdData> docSetupData(pageSetupPrefsCmd, IID_IDOCSETUPCMDDATA);
if(docSetupData == nil)
{
CAlert::ErrorAlert("Error in SetDocumentBleed function, docSetupData is nil.");
break;
}

pageSetupPrefsCmd->SetItemList(UIDList(m_pDocument));
docSetupData->SetDocument(::GetUIDRef(m_pDocument));
docSetupData->SetNPagesPerSpread(1);
docSetupData->SetPageSize(pagesRectangle);
docSetupData->SetPageOrientationIsWide(bWide);
docSetupData->SetUseUniformBleed(kFalse);
docSetupData->SetBleedBox(bleedRect);
ErrorCode error = CmdUtils::ProcessCommand(pageSetupPrefsCmd);
if (error == kFailure)
CAlert::WarningAlert("Command failed");

 

 

Can some one please help me in letting me know what wrong I am doing in this command? This has become quiet critical for me.

 

Thanks all in advance.

 

Regards
Farzana.

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.

ExtendScript Toolkit cannot launch InDesign CS6 Server

$
0
0

I have installed the trial version of InDesign Server CS6 on Windows 2008 and am trying to run scripts against it using the ExtendScript Toolkit, but it is not working. When I select "Adobe InDesign CS6 Server" from the drop-down list in the upper left, I get an alert box that says "Cannot launch target Adobe InDesign CS6 Server!". When expanding the details box it just repeats that same message.

 

I can start InDesign fine using either the command line or the windows service and it responds to requests. As far as I can see, it is just ExtendScript that is having problems with it.

 

I have combed through the event logs and can't find anything there indicating what the problem might be. I have also googled everything I can think of looking for a solution with no luck.

 

Has anyone else run into this? Any suggestions on a solution or at least where I might be able to track down a useful error message that says why it can't launch InDesign?

InDesign Server CC2014 Trial issue

$
0
0

Hi,

 

I cannot start our InDesign Server CC 2014 (Windows Server 2008). I have installed the software and was logged with our Adobe ID and installation was successful without any error message. The installation manual states that “InDesign CC Server needs to be activated before it can be used. If the computer is online, activation is done automatically when you install.” However, I got an error message when I tried to launch InDesign Server: “Adobe InDesign Server is not properly licensed and will now quit”.

 

Since  I had previously installed InDesign Server CS6 on another machine, I tried to use the APTEE to start the trial. I used the CS6 one because I did not find any version for CC 2014, I finally got the message:

StartTrial Successful

Return Code = 0

but when I tried to launch again InDesign Server, I always get the Adobe InDesign Server is not properly licensed and will now quit message.

I also read this thread but did not find the solution Indesign Server CC Trial issues

 

Thanks for help!

Viewing all 20709 articles
Browse latest View live


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