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

In-design Server CS4 Export to RTF format with Images not working via Java API

$
0
0

I'm using Adobe In-Design Server CS4.  And I'm accessing it via the Java SDK API interface.

 

While attempting to export my story to Rich Text Format (RTF), the images are getting left out. 

 

Yet, taking the exact same .idml file, opening it inside the desktop In-Design App, clicking inside the story, selecting "Export" & choosing "RTF", gives me a .rtf file that includes the images. 

 

Am I missing some setting somewhere in the SDK that I have to expliciately state I want images?  Or do I need to do my export off something other than the Story object? 

 

I know the images are valid, as not only does the export to RTF via the desktop application work, but through the SDK API, I can Export to PDF & the pdf includes the images.  So the image files are valid.  

 

 

Here's a code snippet.  Note the "closeDocument" method simply invokes the typical doc.close method with some custom exception handling.

 

 

                 int mainStoryIndex = 0;

                 boolean isRTF = true;  //flag to control export of rtf or pdf file.

         String documentPath = localTempDir + File.separatorChar + "NewDocument.idml";

         String pdfPath= localTempDir + File.separatorChar + "NewDocument.pdf";

         String rtfPath= localTempDir + File.separatorChar + "NewDocument.rtf";

         VariableType vtDocument = myApp.open( VariableTypeUtils.createFile( documentPath ) );

         com.adobe.ids.basics.Document doc= DocumentHelper.narrow(vtDocument.asObject());

                    

                if(isRTF) {

                          Story exportStory = doc.getAllChildStorys()[mainStoryIndex];

                          exportStory.doExport(VariableTypeUtils.createEnumeration( com.adobe.ids.enums.kExportFormatRTF.value ), rtfPath, optPreset, OptArg.noString(), OptArg.noBoolean());

                          closeDocument(doc, documentPath );

                } else {

                          doc.doExport( VariableTypeUtils.createString("Adobe PDF"), pdfPath, optPreset, OptArg.noBoolean(), OptArg.noString(), OptArg.noBoolean());

                          closeDocument(doc, documentPath);

                }


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

How to specify -preview when launching via AppleScript

$
0
0

I have an InDesign Server CS5.5.I have a shell script that waits for xml files to be placed into a certain directory on the server. When it sees a file in the folder it launches an applescript that controls InDesign Server. I need to know how to specify the -preview option for the InDesign Server binary so the files generated by the server will have previews when they are opened in InDesign client. The apple scripts look like this:

 

tell application "InDesign Server"

 

     -- do some stuff

 

end tell

 

Where/how would I specify the -preview option. I see nothing referring to the -preview option in the Library for indesign.

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

InDesign CC Server 2014 and InDesign CC 2015 Application

$
0
0

Hi,

My corporate network has a windows server system with InDesign CC 2014 server software installed on it. My users however are now being pushed into the InDesign CC 2015 application. Would there be anyway possible to have InDesign CC 2014 server read and accept a InDesign CC 2015 package? Or... will my users need to downgrade back to InDesign CC 2014 Application? Thank you for your time.

Update Indesign CS 6 Server

$
0
0

Hey everybody,

 

ich want to do an update of my indesign cs 6 server (on a windows 2012 machine) and i have a few questions.

 

How can i retrieve the actual patchlevel of the installed indesign server software?

Are the adobe patches cumulative? ...because there are two patches here:  Adobe - InDesign : For Windows

 

Thanks in advance,

 

Florian

how can I fix a corrupted indesign file

$
0
0

Hi, actually I have a corrupted indesign file which close the program while opening , how can i fix it ?

indesign server cs6 10 seconds to delay

$
0
0

之前使用flex+Indesign Server cs5.5 开发了一个针对indd文件的编辑器,使用的java调用Indesign Server cs5.5服务。后来编辑器需要升级为支持indd6文件的版本,由于Indesign Server cs6不再支持java语言,所以使用了JavaScript语言调用Indesign Server cs6服务。版本升级完成后,测试发现所有的功能都能实现,只是JavaScript在调用Indesign Server cs6时,会有10秒的延时时间。每一次调用,服务器都会等待10秒钟才执行,是什么原因呢?

Indesign Server cs6是否存在相关的等待时间配置项呢?

 

Hey everyone!

 

Previously we used flex + Indesign Server cs5.5 to develop an editor for indd file, use the java call Indesign Server cs5.5 service. Later editors need to be upgraded to support indd6 file versions .As Indesign Server cs6 no longer  supported java language, so we used  the JavaScript language calling Indesign Server cs6 service. After the version upgrade is complete, the test found that all of the functions can be realized .only in the invocation Indesign Server cs6 JavaScript, there will be 10 seconds of delay time. Each call, the server will wait 10 seconds before execution, What is the reason for it?

whether Indesign Server cs6  has a  associated configuration items  like waittime or not ?

 

wustgo


Adobe Indesign was deactivated itself when we installed Windows patch on the server

$
0
0

We found the Adobe Indesign Server was deactivated itself when we installed Windows patch on the server. It is not good to activate the Indesign every time after we installed the windows patch. So, please advise how to fix it.

 

Thanks.

Export as HTML-XML java script (or Visual Basic) available for indesign CS6 server

$
0
0

Hi,

I'm looking for Java (jsx) or VB script to the server ID CS6 to export indd files XML and HTML content in the hot folder (share of the same InDesign server).

In my limited experience and skill about Indesign server, I use SOAP for execute jsx. (It'snt mandatory).

I am a ICT project manager not a developer.

Best regard

 

filippo

InDesign Server Package Issue

$
0
0

Hi,

I am facing a new issue that never rose before with the package feature with inDesign Server. Suddenly nor the indd file, nor the fonts folder, nor the Links folder are created. All I get is the "instructions.txt" file. Weirdly enough I produce a pdf file which faithfully represent what my indd is expected to be. The contents are well placed (texts and pictures)…So at some point it's obvious the file exists but somehow something is corrupted when InDesign wants to package the file.

Actually my workaround is to mimick the package feature myself. However i would like to understand what's going wrong here.

 

Even weirder, in some cases, the package is just fine. So I am feeling there is some wront artefact is ome file but thos files got nively packaged in the past. I use to place fonts in the Applications fonts folder. But i tried to remove any fonts, restart server and it didn't fix it.

 

Any hints ?

 

Best regards,

 

Loic

InDesign Server command-line flags

$
0
0
How can I get command-line flags list of InDesign Server?

Actually the situation is testclient doesn't work.
I installed InDesign Server and SDK.
I run InDesignServer.com then I use something like this "testclient -server t.js".
Server and client runs on same comp.
As result I have this exception:
SOAP FAULT: SOAP-ENV:Client
"Unknown error"
Detail: TCP connect failed in tcp_connect()

in SDK indesign-server-test-client.pdf I found:
"Using InDesign Server
In order to use the test client, you must have a machine that has InDesign Server installed and
running properly, as the test client will communicate with the InDesign Server application.
For instructions on running and terminating InDesign Server, including command-line flags,
please refer to the InDesign Server Installation and Configuration Guide."

Any suggestion?

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

InDesign Server Installation and Configuration Guide

$
0
0
Hi everybody
I try to ask one silly Q.
Where can I get this document.
I found many references but no link :(

InDesign Server module "Reader For Excel.smrd" crashes after InsertionPoint.Place some ranges from Excel

$
0
0

Hello,

 

I place 3-5 ranges to document from each file in a set of about 200 Excel files in a loop using:


app.ExcelImportPreferences.RangeName = rangeName;

point.Place(excelPath);

 

Sometimes it crashes with the following error:

 

Faulting application name: InDesignServer.exe, version: 10.0.0.70, time stamp: 0x5362b4f7

Faulting module name: Reader For Excel.smrd, version: 5.65.0.32332, time stamp: 0x52cd63c1

Exception code: 0xc0000005

Fault offset: 0x0000000000038412

Faulting process id: 0xd98

Faulting application start time: 0x01d18f153e4586d3

Faulting application path: c:\Program Files\Adobe\Adobe InDesign CC Server 2014\InDesignServer.exe

Faulting module path: c:\Program Files\Adobe\Adobe InDesign CC Server 2014\Plug-ins\Filters\Sangam Readers\Reader For Excel.smrd

Report Id: 17e4707a-fb23-11e5-940d-00155d04d142

Faulting package full name:

Faulting package-relative application ID:

 

It can happen on any iteration or never. Server throws an exception "Cannot place this file. No filter found for requested operation." until it is restarted.

 

Any ideas? Thank you!

InDesignServer instance of LBQ cost up to 1.2GB memory

$
0
0

Hi,

 

I have use InDesignServer to convert indd files to pdf with the help of LBQ feature of IDS.

But at first, the memory of each instance cost 90-150Mb, after a lots of test of converting yesterday, I find it costs up to 1.2 GB for each instance while starting up, CPU usage of each instaces can up to 25%!!!!

What's the problem? I restarted the computer and reinstall the IDS, but it still costs about 1.2 GB for each IDS instance.

 

Can anyone tell me what happened?

 

 

Darren.

Japanese Crop Marks on IDS output?

$
0
0

I am currently implementing an IDS solution in Tokyo. Japanese crop marks are required by my client to be on all outputs, laser printed and X1A PDFs. My solution works fine in InDesign workstation, marks are what they should be. However in IDS I get north american crop marks and the layout name slug is unprintable because it includes Japanese characters. I was told there is no Pacific rim version of IDS, but there appear to be one for InDesign. The menu for Japanese Crop marks is visible in the Japanese localized machines I work with but not in the north american machines, Any help with this would be greatly appreciated!

Entry point __crtCreateSymbolicLinkW could not be located in the dynamic link library MSVCR110D.dll

$
0
0

We have installed Indesign CC Server 2014 Debug on a 2008 R2 Windows Server for testing. This is the version we were told we had to use in a development environment. The installation went smoothly, however, when I try t

start the service with SOAP enabled (InDesignServer -port 12345) I get the following attached error. Actually I get the error anytime I try to start the service from the command prompt with or without the -port parameter. The service will start from Windows Service Manager, however, I does not seem to take the -port parameter in the options dialog.

 

 

IndesignServer_Soap_Startup_Error.jpg

5.0.2 dot release available for InDesign Server

$
0
0
The 5.0.2 Dot Release for InDesign, InCopy and InDesign Server is now live on Adobe.com and available through Help>Updates. This update provides key fixes in the areas of Anchored Objects, Character Alignment, Step and Repeat, Indexing and Table of Contents, Text and Fonts, Dictionaries, Color, Scripting, Import/Export Graphics, InDesign Interchange files (INX), XML, Library files, Printing, and others.

For a full list of resolved issues, please see the Adobe InDesign CS3 5.0.2 ReadMe.pdf at http://www.adobe.com/go/id5_readme.

This installer includes fixes from all previously released InDesign CS3 5.0.x updates. Note that the previous InDesign 5.0.x updates are no longer available separately.
Viewing all 20709 articles
Browse latest View live


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