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

return value from Indesign SErver CS4 using SOAP

$
0
0

does anybody have a complete example on how to send a script to indesign server and get a response using SOAP in ASP.NET

 

I've already read the post http://forums.adobe.com/message/2255207#2255207 and all links within this post, but I can't seem to get it working.

 

I'm running on a widows 7 ultimate x64with a Q6600 processor and 4Gb of memory (so I meet the system requrements )

 

I can send a script to the server, butI always get a response of null. I use the folloing script to test this function(javascript)

 

   function main(){return 'test';}main();
/*function main() {
var doc = app.open(File('C:/Users/Wesley/Desktop/myTestDocument.indd'));
doc = doStuff(doc);
doc.exportFile(ExportFormat.PDF_TYPE,new File('C:/Users/Wesley/Desktop/test.pdf'));
var pages=doc.pages.length;
pages=app.configuration;
pages=app.scriptPreferences.version;
doc.close();
return pages;
}

function doStuff(doc) {
// do some stuff
return doc;
}

main(); // the return statement in this function actually gets returned*/

 

when I run this code in ExtendScript CS4, the script runs fine, but I found out that ES4 sends the script through COM.

 

Are there any know issues with IndesignServer x64 or it's related IndesignServerService?

 

all help is welcome

 

kidn regards,

 

Wesley


Grouping rectangle and textframe type

$
0
0

Below code for simple grouping objects is not working.

 

ID Server CS4

Vb.net

 

Dim FigGp As InDesignServer.Objects
Dim obj As InDesignServer.Objects
obj.Add(rect.Index) 'throwing exception Object reference not set to an instance of an object.
obj.Add(CaptionFrame)
FigGp = ParentPage.Groups.Add(obj)

 

Regards,

Suresh

Newbie issues compiling java soap sampleclient

$
0
0

Hi All,

 

I have searched the forums and internet for help with this to no avail.

 

My setup is Windows Server 2003 / Indesign Server CS5 / Coldfusion 9 / Apache 2 / PHP5

 

I intend to use the Java / Soap implementation to communicate with ID5... Unless anyone can think of a better way to implement with CF9 (i have found no info on the web)

 

I have a lot of experience in scripting inDesign, and coding Coldfusion, but pretty much no experience in Java or compiling Java...

 

I am trying to compile an run the 'sampleclient-java-soap' sample but keep getting the following error:

 

C:\Program Files\Adobe InDesign CS5 Server SDK\samples\sampleclient-java-soap\sc
ripts>sampleClient -host http://localhost:12345 c:\test.jsx

 

C:\Program Files\Adobe InDesign CS5 Server SDK\samples\sampleclient-java-soap\sc
ripts>java -classpath "..\lib\sampleclient-java-soap.jar;..\..\idsp-wsdl-java\li
b\idsp-wsdl-java.jar;..\..\..\external\axis-1_2_1\lib\axis.jar;..\..\..\external
\axis-1_2_1\lib\axis-ant.jar;..\..\..\external\axis-1_2_1\lib\commons-discovery-
0.2.jar;..\..\..\external\axis-1_2_1\lib\commons-logging-1.0.4.jar;..\..\..\exte
rnal\axis-1_2_1\lib\jaxrpc.jar;..\..\..\external\axis-1_2_1\lib\saaj.jar;..\..\.
.\external\axis-1_2_1\lib\wsdl4j-1.5.1.jar" com.adobe.ids.SampleClient -host http
://localhost:12345 c:\test.jsx
Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/rpc/Service

 

        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClassCond(Unknown Source)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        at java.security.SecureClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.access$000(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
Caused by: java.lang.ClassNotFoundException: javax.xml.rpc.Service
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        ... 12 more
Could not find the main class: com.adobe.ids.SampleClient.  Program will exit.

 

 

I first tried to compile with ANT, then with ECLIPSE (which i have no experience with) but still get the same error...

 

Please help... I know it's probably a newbie question in regards to Java but if someone can just point me in the right direction that would be great... From what i have deduced it is about the 'classpath' setting but in the sampleClient.bat batch file it explicitly defines the locations of the classes which from what i have read should make it work regardless ?

InDesign Server CS5.5 installation issue

$
0
0

I am developing solution using InDesign Servers via COM which is hosted on Windows Server 2008 R2. And I am experiencing problem utilizing CS 5.5 server:

 

When InDesign Server CS5.5 is installed on Windows Server 2008  (64bit) its COM component is registered with following parameters: CLSID = {96D10A00-63E3-423e-A223-DFC4BEA21206}, ProgId =  InDesignServer.Application.CS5.

 

The problem is that those are the same parameters that are used for InDesign Server CS5 COM component. And therefore I can't have CS5 and CS5.5 installed on the same server, which is required for solution I am deleloping.

 

Has anyone experienced that problem or maybe know some workaround for it?

 

Meanwhile, When InDesign Server CS5.5 is installed on Windows 7 (32bit) its COM component is registered with unique parameters: CLSID ={34701EBC-5975-411C-8A45-E78E0934AADD}  and ProgId = InDesignServer.Application.CS5.5

Installing Transparency Flattener Preset for Indesign Server CS4

$
0
0

I'm trying to figure out how to install a transparency flattener preset for InDesign Server CS4.

 

I can see how they are installed for the InDesign app.  Edit -> Transparency Flattener Presets...

 

But I'm not sure which directory to install these on for the server.

 

I've seen a post that mentions:

C:\Documents and Settings\<UserName>\Application Data\Adobe\InDesign\Version 6.0\en_US\Transparency Flattener Presets

 

/Users/<UserName>/Library/Preferences/Adobe InDesign/Version 6.0/en_US/Transparency Flattener Presets

 

for the Desktop version.  But when I place files here even for the CS4 Desktop, they don't seem to show up in the UI.

 

Any help would be appreciated,

Thanks,

Dennis

Launching instances using InDesignServerService.msc issue

$
0
0

Hi,

 

- I am using CS 5.5 server with the design merge plugin on Windows 7.

- I am using InDesignServerService.msc to configure and start indesign server instances.

- I am passing '-configuration I1 -iorfile D:\ior\I1.txt -pluginpath Server/Corba' in the command line arguments option of InDesignServerService.msc.

- When I am starting the service the instance gets launched but no folder with the instance name 'I1' gets created at 'C:\Users\personal\AppData\Roaming\Adobe\InDesign Server\Version 7.5\en_GB' unlike launching the instance from the command prompt.

 

Is the above folder craeted at any other location?

 

The design merge plugin uses 'Adobe Tags TransTable.txt' while merging the records which is placed at '...\{INSTANCE_NAME}\Meadows\DesignMerge\TransTable\' relative to the above location.

 

As this folder doesn't gets created (if instance is launched from InDesignServerService.msc), I am getting an error 'TransTableNotFound' while merging records.

 

Can anyone help !!

 

 

Thanks

Swarup

HtmlItem.HtmlContent Issue

$
0
0

I'm new to InDesign and InDesign Server CS6.  As a small proof of concept, I'm trying to create an InDesign template with an HtmlItem in the document, which has not been a problem.  I am, however, having issues when trying to edit the value of the HtmlItem.HtmlContent using the COM library or the JavaScript SDK with InDesign Server.  If I run the script directly in the InDesign client, everything works fine.

 

My snippet of my JS script is below:

 

        // get the rectangle           var txtHtml = myPage.rectangles.itemByName("txtHtml");           if(txtHtml.htmlItems.length > 0){                     for(var i = 0; i < txtHtml.htmlItems.length; i++){                               txtHtml.htmlItems[i].htmlContent = "test";                    // strange, this works with InDesign client app, but not from InDesign Server                     }           }

 

When this runs using the COM library's DoScript function, I end up with the following exception in Visual Studio:

     The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT))

 

If I try to set the HtmlItem.HtmlContent directly using the COM library, I get the same error (note, I can see my template text in the HtmlContent property while debugging).

 

Also, I haven't seen any other issues when setting the value of other InDesign elements using the JS SDK, such as a TextFrame's contents.

 

Is this a bug, or am I doing something wrong?

 

Thanks!

Grey Lines around the image while generating PNG from INDD file

$
0
0

Capture.PNG

Hi,

 

I am using the InDesign Server to generate the PNG image and PDF from INDD file. While designing we do mapping of variable data fields, e.g., Text will be replaced by dynamic text, image will be replaced by dynamic image, barcode will be drawn on the basis of input at the image generation from InDesign Server.

 

Now when I do this mapping, a grey color line comes by itself and surrounds that particular image/ barcode (will be known as Variable Data fields). This grey line signifies that this data field is a variable datafield which will be replaced dynamically at the time of PDF OR Image generation by InDesign Server.

 

Now the InDesign Server is behaving different when:

 

1. when PDF is generated : Proper PDF gets generated by replacing all the variable data fields and with out any grey lines.

2. when PNG is generated : Image got generated by replacing all the variable data fields, but the images and barcode still contains the grey lines which were just to signify the Designer about the variable datafield.

 

Therefore, InDesign Server is generating the PNGs with the greylines surrounding the images and barcodes, which is not correct. Can any one let me know how can I remove these grey lines from PNG?

 

Please find one sample screenshot of INDD file in the attached file.

 

 

Warm Regards,

Rahul


InDesign Server CC Multi-Instances

$
0
0

Following the documentation for multi-instance support the application, running as a web service under IIS7 on Windows Server 2008 R2, is failing to access the object. For a single instance I use CreateObject("InDesignServer.Application")but as document for multiple instances I useGetObject(“myIDS1”)(where I have an instance of InDesign Server CC running with parameter “indesignserver -configuration myIDS1”. I have tried running the instance both from command line, elevated command line, and from the InDesignServerService). It is acting as though it does not recognise the instance name, but then I don't really understand how it would. Any ideas appreciated.

Creating Hyperlink using InDesign CS6 Server

$
0
0

Hello,

 

Could anyone help me to automate hyperlink generation for the web related contents, I can acheive this using desktop, but not in InDesign CS6 server, since 'selection' property is not supporting by the server version.

 

Thanks,

 

Praveen

Import Excel with charts and keep text content

$
0
0

I'm developing solution based on InDesign Server and need to import excel document containing chart and text content to InDesign doc.

I haven't found any way to import it and still have a capability to work with text content. Most threads suggest two practice:

     1. export document to pdf/eps and import

     2. copy\paste chart using the clipboard alone from the other content

Neither way is sutable for me.

Is there any solution, from indesign or third-party, that allows me to import excel file with text content and keep charts available for high-resolution printing. I.e. charts could be vector images or high-quality raster.

Complication is I need it in script for InDesign Server without any clipboard or selection. Also, Office COM-model isn't suitable because of server and multi-thread limitations.

solution architecture for online editing of complex and big template

$
0
0

Which is the best and right solution architecture to satisfy this scenario?

 

My users must to edit via web some documents.

The document that an user edits come from a template deployed into a website.

The template is the same for a set of users.

So those documents are a mix of a form (where user insert text, number and images) and a big document to realize a print like a magazine or a brochure.

 

Those documents could be have more or less 50 pages...and more or less 300 fields.

 

The user edits the document(s) online web with a browser (no client/software installation) and cannot change template structure or data binding.

 

Inside the template are needed some cross checks between fields values (for example if the user insert X into a field...the value of another field must to be Y).

 

Some fields are image fields.

 

Some fields are flowable text fields. I mean... the document/template is big and many fields values are in natural language with a limit of min/max of characters. So the user can insert a variable number of words and the final document to print need to be beautyfull and nice to see. No blank space between fields or bad layout of pages. The documents are more similar like those samples

 

http://issuu.com/telethon/docs/bilancio-missione-2013?e=0/6755414

 

http://www.joomag.com/magazine/rapporto-coop-consumi-e-distribuzione-rapporto-coop-2014/00 50209001409735318?p=1&e=1&embedInfo=;image,https%3A%2F%2Fd25ow0ysq5ykrj.cloudfront.net%2Ff lash%2Fgui%2Fthemes%2Fdefault%2Fbg.jpg,fill

 

Is necessary that the user sees how its document is coming out. I don't know if it is possible see it at (near) real time or not, but the user experience has to allow users to edit big documents and see if it is "possibile" to print it (I mean in typography).

 

The template must contains some user interactions to allow help and support about each field contents.

 

The final document must have a summary with title and page numbers of chapters.

 

In function of some fields values...other sections of document (I mean a set of fields in block) must disappear from final document (for example because of they are not regarding that user) so is not necessary that the user sees and fills those fields.

 

Some fields are pre populated/filled with values coming from database.

 

The user edit its document in more days and when he returns at work, obviously, the previous work not have to be lost.

 

Not many templates will be distribuited (at start I think 5/10 different templates available to some hundred of users) but they are complex in quantity of data and quality of graphic layout.

 

We need to process data inserted by users so the solution cannot is a "simple" flat online word editor because the data are structured into a database and because of some data dependency is needed.

 

These are some main and general requirements.

 

I'm evaluating differents IT solution architectures and products. Some decision regards to *make* custom forms with a software developer and then render final pdf with programming or with some software or *buy* development products that allow build complex forms into a IDE and to publish forms...

 

Which could be the best solution using Adobe products and which modules will necessary to use?

 

Livecycle + InDesign client and InDesign Server?

Only Licecycle?

Others...?

 

Thank you in advance for your suggestions.

 

Visert

How to convert idml to pdf in java through SOAP?

$
0
0

Hi All,

 

 

 

I am very new to INDD Server SDK. My question can be very basic.Sorry for that in advance.  What I need to do is sending an idml file to InDesign CS6 Server and get a PDF back in java. This is required to enable translators translating idml format to preview the translated idml. Is this possible? Are there some code samples about how to do it?

 

 

 

Thanks a lot.

 

Özkan

Activating indesign server 5.5

$
0
0

When we try to activate using adobe_prtk with leid as indesingserver-cs5.5-win-gm we get return code=1. What should be to activate

Is creation of complex vector art possible with InDesign Server?

$
0
0

Hello,

 

Since Illustrator Server is, sadly, not available from Adobe, I wonder how far can InDesign Server be pushed in terms of vector art and typography? Specifically, I'd like to know if it's possible to programmatically create, say:

  • an arc or any other math based shape,
  • a repeatable pattern fill from a .ai file,
  • a custom/imported brush stroke applied to a path,
  • a clipping mask shape retrieved from dynamically created text,
  • any vector based effects, e.g. halftoning an image.

 

Are there any examples of graphically rich artwork created with ID Server?

 

Also, is it possible to test scripts aimed at InDesign Server with regular version of InDesign CC 2014?

 

Thank you!


PDF intermittent export problems (e.g Font embedding sometimes fails)

$
0
0

Hello,

 

Currently we're experiencing some weird issue with our Indesign Server in one of our environments ( we do not experience the same problem in our other env which has the same configuration)

It is often exporting some PDFs with problems in its font information (when opening the PDF in the viewer, some of the text is missing and the reader shows a prompt "Cannot extract the embedded font '<some alphanumeric prefix>' + <font_name>'. Some characters may not display or print correctly")


We are not using any font manager/3rd party plugins and have also tried to clear/refresh the font cache / list (*.lst) files and reset Indesign Server preferences (by deleting specific the pref folders as advise in one of the forum posts)

The problem is intermittent as exporting the PDF from the IDML again doesn't cause the error so not sure why this is happening.

 

Note that we are exporting the PDF to a shared folder (but mapped to a local folder where indesign server is located, the folder is referenced in indesign with the remote path e.g \\192.168..x.x\Shared\<output_file>.pdf). There is no antivirus installed on the computer.

 

Does anyone have any similar problem or any advise on what else I can investigate?

 

Thanks

Adobe InDesign Server CC 2014 compatible with Windows 2012 Server R2.

$
0
0

The systemrequirements are maybe not up to date.

There i can not see the R2 version supported.

 

Are all newer releases supported?

 

Thx

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.

Adding XMP Details in Indesign INDD and generated PDF File

$
0
0

HI,

How can we add xmp details to indd and pdf file in indesign. and the added xmp details should be populated in IPTC content of indesign xmp viewer.

rectangle.place (Placing Image) - InDesign vs InDesignServer

$
0
0

Any help or suggestions or even guesses appreciated here. Thanks!

 

I have a script that correctly places images in tagged rectangles via script in InDesign, the script then exports to PDF. All is well.


When I run the same script with the same image path folder structure in InDesignServer, the exported PDF does not show the 'placed' images. I'm getting no errors in my console.


Early in the script I have;

myInDesign.imagePreview = True


I place the images with;

myRectangle.Place myFile, False

myRectangle.fit 1668247152

myRectangle.fit 1667591779

for each myItem in myRectangle.items

     myItem.itemLink.unlink

next



I've tried it with and without the .unlink code (an attempt to force embedding of the images)


In all other aspects the script works the same on ID as IDS. I'm starting my ID CS6 server with InDesignServer -previews


I suspect I'm missing something with the PDF export preferences, but have no idea why it's working on ID and not on IDS.


Any help greatly appreciated.

 

(I have cross-posted this in the InDesign Forum. I will remove one or the other if answered)

Viewing all 20709 articles
Browse latest View live


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