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

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

  }

}


Stuck parsing an InDesign document, extracting data to an XML file

$
0
0

Hi,

 

I have an indesign document of a newspaper page (1 spread + 1 page) with some articles (title, body, img, img caption) and ads (img). I need to parse this and create an XML file from which data can be stored into a mysql db. The db handling is already programmed.

 

The xml file will have this structure (page = root):

<page>

     <article>

          <title>Title</title>

          <content>Lorem ipsum</content>

          <img title=""></img>

     </article>

     <ad>

          <img title=""></img>

     </ad>

</page>

 

The .indd file is created using the Smart Layout plugin from WoodWing software. When trying to print the "TextFrames>Texts>contents" the textframes that use the smart layout plugin do not show, they seem to be not included in the data model of the app. That's why I went another route, and parsed "Stories>Texts>contents". I can get all the text objects of the page, including the articles that are created using the smart layout plugin. Among these objects are article title's and article bodies. The problem is I don't know which title belongs to which body, so I can't create a new article node in the XML. I have exported the orignal file as IDML and browsed the spread and the stories, but I see no way to link article titles (textframe), article bodies (textframe) and images (contained by rectangles) together.

 

Is there a way to solve this?

 

Setup:

InDesign CS4 .indd documents

Win2k8 server

JavaScript (via ExtendScript toolkit)

InDesignServer CS5.5 (64bit) (want to use this)

SmartLayout plugin (installs @ InDesignServer CS5.5 32bit. This 32bit InDServer does not start, it has missing dll's).

logs in Indesign Server

$
0
0

Hi Experts,

 

We are running multiple instances of Indesign server service. But for all the instances Logs are coming into single file. Is it possible to separe the logs for each instance of server.

 

It will be great help for analysing each server request. If possible please let us know.

Thanks in advance.

 

Regards,

sameer

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

How do I get the Application object for a running instance of InDesign Server from VBScript and C++

$
0
0

I have a running instance of InDesign Server CS6 which I launched using the following command:

"C:\Program Files\Adobe\Adobe InDesign CS6 Server x64\InDesignServer.com" -port 12345

 

I tried running the following VBScript file to access this running instance:

Set myApp = WScript.GetObject("configuration_12345")

myApp.ConsoleOut("Foo")

Set myApp = Nothing

 

But I get this error (launched using 64-bit wscript.exe):

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

Windows Script Host

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

Line:          1

Char:          1

Error:          File name or class name not found during Automation operation

Code:          800A01B0

Source:           Microsoft VBScript runtime error

 

I also tried to access this instance using C++ COM:

int _tmain(int argc, _TCHAR* argv[])

{

          HRESULT hr = ::CoInitializeEx(NULL, COINIT_MULTITHREADED);

          if (FAILED(hr))

          {

                    printf("COM init failed\n");

                    return 0;

          }

 

          IDispatch* pUnk = NULL;

          hr = ::CoGetObject(L"configuration_12345", NULL, __uuidof(IDispatch), (void**)&pUnk);

          if (SUCCEEDED(hr))

          {

                    pUnk->Release();

                    pUnk = NULL;

          }

          ::CoUninitialize();

          return 0;

}

 

But, CoGetObject returns 0x800401e4 (MK_E_SYNTAX).

 

However, if I use the "helloworld-csharp-com" sample, using "configuration_12345" as the config, it works fine. Why is it not working with VBScript and C++?

 

I'm running Windows 8, 64-bit, IDS CS6 8.0

Cannot start Trial for InDesignServer

$
0
0

Hi!

 

This problem drives me nuts.

 

I have installed a fresh new version of Microsoft Server 2012.

I download the latest version of InDesign-Server for Windows.

I install Adobe Application Manager Enterprise Edition 3.1.

 

I use booth adobe_prtk.exe from the AAMEE and from the Adobe Provisioning Toolkit Enterprise Edition with

 

adobe_prtk.exe --tool=StartTrial --leid=InDesignServer-CS6-Win-GM

 

I get this result

 

StartTrial Successful

Return Code = 0

 

But if i try to start InDesignServer, the console prompts

 

Adobe InDesign Server is not properly licensed and will now quit. (On my machine the german translation of this error).

 

 

What I'm doing wrong?

 

The strange thing is... If I call

 

adobe_prtk.exe --tool=StartTrial --leid=FooBarFooBarFoo

 

the tool says also

 

StartTrial Successful

Return Code = 0

 

 


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.

Problem printing documents from a Script

$
0
0

Hello, I have developed a JavaScript for InDesign Server CS6.
The JavaScript take the InDesign document and send it to print to a poscript printer.
Usually the script works correctly, but after some executions it appear the error message "There is a problem with the font "---------"".

At the beginning I thought that the font was corrupt but it makes no sense because if I restart the InDesign Server and launch the execution with the same document, It works correctly.

I have reviewed the script, and we are sure that the script is correct.

The documents should be correct because if I launc any document after restarting the application It works OK.

The fonts seem be OK, following the same reason that I say about the document.

So we don't know where is the problem but it is an important problem.

could someone help me?

Regards


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

InDesign Server CS6でエラー発生、原因と対処方法を教えてください。

$
0
0

InDesign Serverを利用中、下記2件のエラーが発生しました。

原因、及び対処方法をご存知の方がいらっしゃれば、教えてください。

 

When we use the InDesign Server, two issue case were occurred below:

If you find any causes, solutions , please reply for this comment.

 

 

OS: Windows Server 2008 R2 Standard

a)

Faulting application name: indesignserver.exe,

version: 8.0.1.406,

time stamp: 0x5033740b

Faulting module name: ntdll.dll,

version: 6.1.7601.17514,

time stamp: 0x4ce7c8f9

Exception code: 0xc00000fd

Fault offset: 0x0000000000054f4a

Faulting process id: 0x1334

Faulting application start time: 0x01cf2cd301390b3b

Faulting application path: C:\Program Files\Adobe\Adobe InDesign CS6 Server x64\indesignserver.exe

Faulting module path: C:\Windows\SYSTEM32\ntdll.dll

Report Id: b5097170-993c-11e3-90ff-001018c9f90e

 

b)

Faulting application name: indesignserver.exe,

version: 8.0.1.406,

time stamp: 0x5033740b

Faulting module name: AFL.dll,

version: 1.0.0.0,

time stamp: 0x4ed884f4

Exception code: 0xc0000005

Fault offset: 0x00000000000017c5

Faulting process id: 0x149c

Faulting application start time: 0x01cf72c2a380404f

Faulting application path: C:\Program Files\Adobe\Adobe InDesign CS6 Server x64\indesignserver.exe

Faulting module path: C:\Program Files\Adobe\Adobe InDesign CS6 Server x64\AFL.dll

Report Id: 8526a06c-df2e-11e3-a6c7-001018c9f90e

interactive document 交互文档

$
0
0

您好,是否有一个帮助文件详细介绍了indesign的交互功能(动画,连接,等等)??

Indesign Server download link not working

How to work with Layout Windows

$
0
0

myDoc.layoutWindows[0] not working with indesign server It shows object not supported.

Any alternative for this to use with indesign server??

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.

Font Not Found.

$
0
0

Hi there,

 

Running InDesign Server with a front-end that takes imported IDML files and creates a print ready .pdf. Something I noticed is that sometimes a font is missing and I get the error message from InDesign server about this. It doesn't affect the .pdf output (except for the missing font but it substitutes it). Is there a way that when an IDML file is imported that the fonts are passed to the InDesign server to process? Or do I have to install all the fonts on the server instead?

 

Just trying to figure out what's the best way to do this.

 

Thanks.

 

~Allen


InDesign Server to manage reporting services

$
0
0

Hi, Im looking for help/guidelines regarding InDesign. I'm a software architect working on a line-of-business application that will eventually require printing about 5 hundred thousand personalized report (of about 20 pages each) over a couple of days (and many other smaller jobs), and my client requires that this job be executed by a third party. Think of the document as a fairly standard financial report printed once a year for each participant. The application is built in .net, backed by a sql database. Once a year, the data is mined, computed, and outputed in a format acceptable by the supplier (who is chosen through a public tendering process).

 

So from what I've learned thus far, to be complient with most suppliers, I must use some file format like postscript or eps, and to do this, it looks like InDesign Server might be what I'm looking for.

 

So here is what I've figured out so far (and where I will need your help if I'm not making sense) :

- Create a kind of IDML template using InDesign on a desktop computer

- in our .net application, modify the IDML for each participant to personalize it (a lot of conditional code to remove sections of text, and inject numbers, etc).

- Send each (or a batch is feasable) to the InDesign Server to prepare for publishing into postscript/eps files

- and if feasable, also create a PDF of each because we need to keep a digital version of the document on the client's corporate SharePoint (for legal reasons).

 

Is this how InDesign should be used? Am I making any sense?

 

Thanks in advance for all the answers.

Updating inDesign Server

$
0
0

Hi everybody,

 

Since there is no GUI in InDesign Server, how to upgrade from version 10.0 to 10.1? OS is Windows 2012 Server.

BTW, does anybody know which is the very last InDesign CC 2014 version?

Sorry if this question seems basic, but I am a complete newbie (or not so far)…

 

Thanks!

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

Adobe Indesign Server 4 Failed to start

$
0
0

Hi All,

 

I have a big problem.

Finally we got access to download Adobe Indesign Server 4 Debug Version, but after installation, failed to start?!

Environment:

1, VMWare Guest System (2G Memory)

2, WIndows 2003 Server 32bit

3, Installation was good and we tried to run: InDesignServer.com in command line and it says:

C:\Program Files\Adobe\Adobe InDesign CS4 Server Debug>InDesignServer.com
The system cannot execute the specified program.

 

and when we run this from window:

Picture 2.png

 

Further more, I can see below message in Event Viewer:

Event Type:    Error
Event Source:    SideBySide
Event Category:    None
Event ID:    59
Date:        7/7/2009
Time:        10:34:31 PM
User:        N/A
Computer:    INDESIGN
Description:
Generate Activation Context failed for C:\Program Files\Adobe\Adobe InDesign CS4 Server Debug\InDesignServer.exe. Reference error message: The referenced assembly is not installed on your system.
.

 

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

 

 

Any help is much appreciated!!!!

 

Thanks,

xin

The remote procedure call failed. (Exception of HRESULT: 0x800706BE)

$
0
0

 

when calling           

Document idDoc = (Document)idApp.Open(inddTemplate, false);


sometimes COMException is produced:


The remote procedure call failed. (Exception of HRESULT: 0x800706BE)


Some stacktrace:

 

at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[]

aWrapperTypes, MessageData& msgData)

bei InDesign._Application.Open(Object From, Boolean ShowingWindow)

 

This error does not appear everytime. We tried to reinstall InDesign (Adobe Indesign CS3 trial Version 5.0.2) but it not helped

 

I found the same problem in other thread http://forums.adobe.com/message/1307758#1307758

But i did not find the answer.

 

thanks in advance

Viewing all 20709 articles
Browse latest View live


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