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

how can I find out all tags related to a stories?

$
0
0

Using InDesign Server,

I need to check each all stories avaiable. if there are a overset in a textframe, I need to return all tags associated to this story.

how can I find out all tags related to a stories?


Style overriden and properties of style

$
0
0

Hi

 

Developping whith InDesign Server Corba API,how can I know if a Paragraph/Characterstyle is overriden?

(with javascript, we have Paragraph.styleOverridden)

Generally, how can we get all properties of a Paragraph style ou a Character Style object?

 

Thanks in advance

 

Any help would be appreciated

 

 

Djams

[CS5 Java Corba] Export PDF as PNG - Error 111626 : This is not a valid InDesign Interchange documen

$
0
0

Hi,

 

i have java web application, that use indesign server to export idml files as PDF.

 

The workflow:

1. open the idml file

2. export the idml as pdf

3. close the idml file

 

Sometimes this error occured: Error 111626 : Server cannot open the idml file. This is not a valid InDesign Interchange document.

When this error occures, aftert that the indesign server sends the same error for all following idmls, that I try to export. 

The consequent is that I have to stop the server and start it again.

 

I just have this behaviour only with this error code. For all others errors the server works fine and export all idmls correctly.

What can I do. I don't want to restart the server everytime.

 

Can you help me ?

 

Thanks + Cheers

Michèle

IOR files not being created in shared folder

$
0
0

Hi Experts,

 

When ever I run the Indesign server as a service and the Ior folder is pointing to the local drive e.g. c:\IDS\ior then the ior files are created. But when I point by IOR folder to the shared drive e.g. \\\\st-con-02\\fm2appsdev\\IDS1\\IOR1  none of the ior files are created. Please find my command line arguments below :

-pluginpath Server/Corba -iorfile \\\\st-con-02\\fm2appsdev\\IDS1\\IOR1 -port 12349

 

Could anyone please help.

 

Thanks,

Manjunath

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 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!

Using pdf preset file in Indesign server

$
0
0

Hi,

Using pdf preset as a input file to generate pdf files using indesign server . It gives the error as per below

rrmsg=PDF error:Invalid value for parameter 'using' of method 'exportFile'. Expected PDFExportPreset, but received FALSE

 

pdf preset file used is as Adobe PDF Preset 1.joboptions

 

Any workaround to fix the above error msg ???

Combining or Merging Indesign Files (IDML/INDT)

$
0
0

Greetings,

 

I would like to inquire about a possible performance problem regarding combining multiple IDML / INDT files or copying pages via Indesign Server Scripting API.

Note that we are using Indesign Server CS6 (with latest 8.0.2 update).

 

Currently, we are using the following line to merge multiple indesign documents (IDML/INDT)

document.pages.everyItem().duplicate(LocationOptions.AFTER, baseDocument.pages[lastPageIndex])

 

Above line performs what is needed (textframes are threaded, etc), however there is a possible issue with its performance which degrades horribly especially after several merging operations and if there are several pages in the base document or the document to be copied (though the performance is more affected when the document to be copied has many pages)

 

Testing done:

#1 For the below test, Notice that the merging is not constant and degrades per minute (performance may possible degrade when using a larger document)

 

start

end

time elapsed for pages.everyItem.duplicate

 

operation done

with a base of 42 page INDT document

12:13:33

12:15:28

0:01:55

 

add 42 page INDT file

12:15:29

12:18:35

0:03:06

 

add another 42 page INDT file

12:18:37

12:22:53

0:04:16

 

add another 42 page INDT file

12:22:54

12:28:15

0:05:21

 

add another 42 page INDT file

12:28:17

12:34:30

0:06:13

 

add another 42 page INDT file

 

 

TOTAL

 

 

 

 

0:20:51

 

 

 

with a base of 42 page IDML document

12:13:58

12:16:44

0:02:46

 

add 42 page IDML file

12:16:56

12:20:59

0:04:03

 

add another 42 page IDML file

12:21:11

12:26:21

0:05:10

 

add another 42 page IDML file

12:26:35

12:32:39

0:06:04

 

add another 42 page IDML file

12:32:50

12:40:06

0:07:16

 

add another 42 page IDML file

 

 

TOTAL

 

 

 

 

0:25:19

 

 

 

Time elapsed is 20 minutes for INDT and 25 minutes for IDML. it adds ~1 minute for each document added (for a 42 page, this duration may increase when no of pages increase).

 

#2 For below test, we noticed that INDT seems to perform faster than IDML (though it is larger by 10x and is a binary file)

 

 

with a base of 838 page IDML document

14:30:44

14:55:40

0:24:56

 

add 42 page IDML file

 

 

 

 

 

 

 

 

 

 

with a base of 838 page INDT document

15:14:55

15:23:40

0:08:45

 

add 42 page INDT file

 

#3 For below test, notice that the merging degrades by several minutes even if you just increase the number of pages.

Notice that we added the documents according to increasing no of pages as we found out that it performs significantly faster than not (saved several hours)

I also incorporated the doc.save and gc calls but it still doesn't help reduce the whole merging process to several minutes. (still takes 11 hours just to merge 33 documents with total of 1046 pages)

Note that we also checked binary merging (merging small files first but the resulting time is much larger than above)

 

with a base of 1 page IDML document

15:58:45

15:58:52

0:00:07

 

add 1 page IDML file

15:58:53

15:59:00

0:00:07

 

add 1 page IDML file

15:59:01

15:59:08

0:00:07

 

add 2 page IDML file

15:59:09

15:59:18

0:00:09

 

add 2 page IDML file

15:59:19

15:59:29

0:00:10

 

add 3 page IDML file

 

 

 

 

perform $.gc  and doc.save into temp IDML

15:59:35

15:59:42

0:00:07

 

add 4 page IDML file

15:59:44

15:59:52

0:00:08

 

add 6 page IDML file

15:59:54

16:00:05

0:00:11

 

add 6 page IDML file

16:00:08

16:00:21

0:00:13

 

add 6 page IDML file

16:00:23

16:00:49

0:00:26

 

add 7 page IDML file

 

 

 

 

perform $.gc  and doc.save into temp IDML

16:00:53

16:01:03

0:00:10

 

add 7 page IDML file

16:01:05

16:01:19

0:00:14

 

add 8 page IDML file

16:01:22

16:02:18

0:00:56

 

add 10 page IDML file

16:02:22

16:04:12

0:01:50

 

add 17 page IDML file

16:04:17

16:06:41

0:02:24

 

add 19 page IDML file

 

 

 

 

perform $.gc  and doc.save into temp IDML

16:06:50

16:09:14

0:02:24

 

add 20 page IDML file

16:09:19

16:12:31

0:03:12

 

add 20 page IDML file

16:12:37

16:15:53

0:03:16

 

add 21 page IDML file

16:15:59

16:21:00

0:05:01

 

add 26 page IDML file

16:21:07

16:27:25

0:06:18

 

add 27 page IDML file

 

 

 

 

perform $.gc  and doc.save into temp IDML

16:27:40

16:38:28

0:10:48

 

add 37 page IDML file

16:38:38

16:50:42

0:12:04

 

add 39 page IDML file

16:50:55

17:08:09

0:17:14

 

add 42 page IDML file

17:08:21

17:28:39

0:20:18

 

add 44 page IDML file

17:28:55

17:58:32

0:29:37

 

add 52 page IDML file

 

 

 

 

perform $.gc  and doc.save into temp IDML

17:58:58

18:26:26

0:27:28

 

add 52 page IDML file

18:26:42

19:11:57

0:45:15

 

add 63 page IDML file

19:12:16

20:08:49

0:56:33

 

add 64 page IDML file

20:09:09

21:13:22

1:04:13

 

add 67 page IDML file

21:13:59

22:39:28

1:25:29

 

add 67 page IDML file

 

 

 

 

perform $.gc  and doc.save into temp IDML

22:40:15

0:35:17

1:55:02

 

add 84 page IDML file

0:35:48

3:30:53

2:55:05

 

add 98 page IDML file

 

 

TOTAL

 

 

 

 

11:26:36

 

 

 

Notice that I have already added $.gc and doc.save per 5 documents however the effect is lost/not significant around the 4th/5th time.

 

Please confirm if there is something that can be done to resolve above Indesign's performance for merging / copying pages from one document to another.

or suggest alternative code or some setting that we may have missed.


Indesign server CC 2015 trial license issue

$
0
0

I am really struggling to start InDesign server on my Windows 8 machine. I did following steps after spending lot of time:

1) Download trial server

2) Installed it on my machine

3) Download APTEE and run it

4) run command - adobe_prtk --tool=startTrial --leid=InDesignServer-CC-Win-GM

 

But still no joy! Can anyone help me on this

IDML file to PDF taking around 5 minutes to process (CS6).

$
0
0

So our tool has the ability to process .IDML files to .jpg's or .pdf's. Normally all works well and I can get a preview and pdf render within seconds. Lately I have this 1 template that's super small (<275K) and although my preview processes fine when I have it process to return a .pdf file it takes around 5 minutes to do so!

 

I have other templates that are way larger and more complicated that render out pdf's in seconds but this specific one is really baffling me.

 

Checked the .idml and it looks ok. It was built with InDesign CC 2014 and exported out as an IDML file. Our server is InDesign CS6. Would that make a difference?

IDS CC2015 on Mac OS : Segmentation fault using compiled script

$
0
0

Hi all,

 

I am working on a project including IDS CC 2015 on a Mac. If I use uncompiled version of the script, it just works fine. Once I compile the code, I get a segmentation fault error and the server crashes. On prior versions this compiled code works fine.

 

Had anyone already faced that issue ? Any hint on how to prevent it ?

 

Thanks in advance for your help,

 

Loic

[IDCS3 - JS] read terminal during the execution of a script

$
0
0
Hi All

Is it possible to read from the terminal also during the execution of a script, or only at the end?

I would like to trace the progress of my scripts reading messages from the terminal, but I'm able to read only the final result.

thanks
Ivan

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

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

CS3 Server Install problems

$
0
0
Hello,

I'm trying to install CS3 Server on Vista, but get a setup error also on Windows 2000 Server it is not working.
Finally I'm trying to install it on XP it is running the installation program but at the installation options I cannot continue.

Does someone have a solution for this.

Thanks,
Jelle

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

I want to communication with c++ sdk plug-ins by javaScript

$
0
0
When I created c++ indesign plug-ins, I used dollyx.

so, I create indesign server c++ sdk plus-ins by dollyx.

of couse, I choice InDesignServer.

and default sayHello() created successfully.

and startup the indesignserver, I founded that plug-ins count increased.

But, My javaScript could not connect app.sayHello() function.

what is the problem?

Thank you.

[IDS CS2 JS]: Connecting / Calling

$
0
0
Connecting to the IDS:

The Test client that is included in the installation can only connect trough the SOAP interface.
we've managed to get the test client to work, but are wondering if there are any alternative ways to connect to the IDS.

Is it possible to call IDS from a browser / JavaScript, and tell it to start a script?
Can you add a Parameter to that call ? (such as a FilePath)

How to import / export Textframes to edit them in a web editor

$
0
0
Hello,

we are building a web interface for the IDS.

The major task of course it editing text. In the IDS scenario this means to export the content of a textframe (or better Story) in some way, transport it to a web based editor and then send it back and import it, once it has been modified by a user.

So far we have identified the following scenarios:

a) Use the JS API and explore the content including all formatting, tables, etc. and write them to a proprietary XML stream. Then send this stream via SOAP response back to the web server. Transform the XML with an XSL Sheet to HTML and insert that in a web based HTML Editor. The same way back.

Advantage: Completely control able
Disadvantage: Export from IDS is proprietary and self made => high effort and always missing formatting information

b) Export the Story to the InCopy format, send this to the web server, transform it to HTML, let the user edit it, transform it back to InCopy format, send it to the IDS and let it import it.

Advantage: The InCopy export contains all information we need.
Disadvantage: The InCopy Schema is very ugly, as it holds imperative information but does not encapsulate information in XML elements like in HTML. The transformation from InCopy XML to HTML is very complicated. The way back as well.

c) Export the Story to RTF, send this to the web server, transform it to HTML, let the user edit it, transform it back to RTF, send it back and import it as RTF.

Advantage: RTF to HTML transformation is more common and easy.
Disadvantage: Media break and probably lost style information.

d) Export the Story to RTF, send this to the web server, let the user edit it in a Word ActiveX PLugin in the MSIE Web browser, and then import the result as Word File to the Story in IDS.

Advantage: No media break.
Disadvantage: The ActiveX Plugin delivers WordML, which can not be placed in InDesign again. Also this solution would only work on Win32 Systems.

Problem that we have with all these scenarios (beside d): The HTML Editor means a media break, it's for example not possible to check the Hyphenation or multi column behaviour. The fonts are missing, etc.

Questions:

a) Is there any recommended way to edit InDesign Stories remotely in web based environments? Is there for example a Flash Editor that integrates natively with InDesign Incopy, as it comes from the same Adobe Company?

b) Is there any documentation about the InCopy format?

c) Is there any existing StyleSheet or software component that translates the imperative Incopy format to encapsulating HTML-like structures and back?

d) Why is it not possible to import WordML to IDS?

e) Does it make sense to analyse other export formats, like Snippet format, InDesign Xchange Format, etc?

f) How is this handled by other developers?

Regards. Alex Woerl.

[JS] Export document as inx

$
0
0

Hi all,

I'm trying to export a document from IDS via JavaScript.

This script works fine in IDC

var document = app.documents.item(0);

 

if(document.saved == true){

    myInxExport();     

}

 

function myInxExport(){

    document.exportFile(ExportFormat.indesignInterchange, File(myGetDocumentName()), false);

}

 

 

--

molsted

Viewing all 20709 articles
Browse latest View live


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