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

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 ?


Javascript - added images display as grey boxes

$
0
0

I am attempting to add an Image to an InDesign document via a javascript that I am executing via the RunScript() soap method of InDesign Cs4 server.  The script I am using to add an image is something similar to this:

 

var imageFile = File("//c/images/animage.pdf");
var imageGraphic = myDocument.pages.item(0).place(imageFile, null, imageLayer);
imageGraphic = imageGraphic[0];
var imageFrame = imageGraphic.parent;
imageFrame.geometricBounds = [IMAGE_TOP_Y, IMAGE_TOP_X, IMAGE_BOTTOM_Y, IMAGE_BOTTOM_X];
imageFrame.fit(FitOptions.proportionally);
imageFrame.fit(FitOptions.frameToContent);

 

The script adds the image correctly, but when I pull up the document with InDesign, the Images are displayed as grey boxes.  I am able to fix this within InDesign designer by manually setting the "Display Performance" to "High Quality" through the menus, but I need to handle this via the script run on the server.  I attempted to update the script to the following:

 

var imageFile = File("//c/images/animage.pdf");
var imageGraphic = myDocument.pages.item(0).place(imageFile, null, imageLayer);
imageGraphic = imageGraphic[0];
var imageFrame = imageGraphic.parent;
imageFrame.geometricBounds = [IMAGE_TOP_Y, IMAGE_TOP_X, IMAGE_BOTTOM_Y, IMAGE_BOTTOM_X];
imageFrame.fit(FitOptions.proportionally);
imageFrame.fit(FitOptions.frameToContent);

 

//HERE IS THE NEW LINE
imageFrame.localDisplaySetting = DisplaySettingOptions.HIGH_QUALITY;

 

This script runs without problems within the CS4 ExtendScript Toolkit on my local pc.  However, when I run the script against the InDesign CS4 server, I get the following error:

 

Error Number: 55
Error String: Object does not support the property or method 'localDisplaySetting'

 

Does anyone have any advice on how I should proceed?  My main goal is to have the image display correctly without the grey box.

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

Indesign Server crashes unexpected

$
0
0

Hello forum,

 

in the last weeks we have a big problem with InDesignServer CS3 (Ver 5.0.5.697). From time to time one of the running instances crashes with a weird error message in the windows event log. It consists of the following three entries:

 

1. Message: [Server] D [8764] [20082]  (8764 is the process id, 20082 the port. But what does the D tell me)

 

2. Message: [Server] Adobe InDesign wird beendet. Es wurde ein schwerwiegender Fehler festgestellt. Starten Sie InDesign erneut, um InDesign-Dokumente wiederherzustellen, die nicht gespeichert wurden. [8764] [20082]

(German version, it says, that InDesign will be closed because of a fatal error.

 

3. Message: Fehlerhafte Anwendung InDesignServer.exe, Version 5.0.5.697, Zeitstempel 0x49a4cf58, fehlerhaftes Modul Public.dll, Version 5.0.5.697, Zeitstempel 0x49a4ce0b, Ausnahmecode 0xc0000005, Fehleroffset 0x0002e1fa, Prozess-ID 0x223c, Anwendungsstartzeit 01cd34df392c8230.

 

We have no clue, what this is all about. The instances recover by themselfes after a while, but some of the jobs which are send to it throw errors. The Scripts we sent to the instance right before the crash runs without a problem after the restart.

Can anyone help?

 

greets

Michael

InDesign Server - License

$
0
0

Hi,

 

I want to have InDesign Server trial for ever for one my cloud product in which I am tring to demo. After the demo user can either purchase InDesign server themself or plug-in my tool with their existing InDesign server. If I use InDesign Server 90 days trial, after 90 days, will it stop to work or continue to work with water mark? I am fine to have water mark even from the first day. I email to Adobe asking "InDesign Server Developer Free License" but no response. Please advise.

Applescript server 10 2014

$
0
0

Hi There

 

 

Have anyone tried to use applescript with a CC 2014 (10) server  ???? almost nothing works for me...

 

I can create a document and save it, but can't open the same document....

 

Just a simple script...

tell application "InDesignserver"

set MyDok to make new document

save MyDok to "Mac HD:file.indd"

end tell

 

then...

tell application "InDesignserver"

Open "Mac Hd:file.indd"

end tell

 

i get : The document "file.indd" could not be opened. InDesignserver cannot open files of this type

 

very strange because the file was created by the same server ???

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!


how I can convey my ideas, to develop a program Adobe InDesign , which I think can add value adobe with the addition of a menu in Adobe InDesign...!

$
0
0

how I can convey my ideas, to develop a program Adobe InDesign , which I think can add value adobe with the addition of a menu in Adobe InDesign...!

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

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.

I am facing difficulties activating InDesign CS6 server

$
0
0

I'd like to share with you my frustration about InDesign CS6 Server which tries to do the very same as shown above, but apparenty noone at Adobe did think about the fact that ID Server has NO GUI. So as a customer youre left with an Installation that provides NO means for later offline activation, but provides the very same link at installation, basically guiding you through a process that can not be accomplished with ID Server by any means.

Moreover, the Installer claims there is a 7-day grace period until you MUST have activated your license but even with entering a valid code the Server wont start from second ONE, stating "Adobe InDesign Server is not properly licensed and will now quit". This sort of misdesign is what makes customers furious! And then they wonder why people use circumvention technologies.

SOAP Returns from IDS

$
0
0
Is anybody getting any type of return from IDS through and [java] axis interface? I can send a request and it is executed but I get no return from IDS?

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?

InDesignServer Service not starting on Windows Server 2003 (32bit & 64 bit)

$
0
0

Note: this issue is different from this thread on a similar issue.

 

This problem has plagued me for weeks and I finally give up. InDesign Server installs successfully and the InDesignServerService starts, but the server does not run. I can only run the server from the command line. I've followed these installation instructions but run into the following problems:

 

1. installing by the command line: InDesignServerService /install fails and produces the following error log:

 

Installing service InDesignServerService...

Creating EventLog source InDesignServerService in log Application...

Rolling back assembly 'E:\Program Files\Adobe InDesign CS4 Server\InDesignServerService.exe'.

Affected parameters are:

   logtoconsole =

   assemblypath = E:\Program Files\Adobe InDesign CS4 Server\InDesignServerService.exe

   logfile = E:\Program Files\Adobe InDesign CS4 Server\InDesignServerService.InstallLog

Restoring event log to previous state for source InDesignServerService.

2. I cannot install or load the snap-in to MMC. When I try to install regsvr32 InDesignServerMMC.dll it cannot be found (as it's not in the InDesign Server directory). However InDesignServerMMC64.dll is in there and I was able to load the snap-in using regsvr32 InDesignServerMMC.dll, but the server still only runs when being started from the command line.

 

As I mentioned, InDesign Server runs fine when I have an active command line window open and run InDesignServer, but the moment I close the command line window, the server shuts down. Any ideas?


Indesign Server errors

$
0
0

Hi,

I'm working with Indesign Server CS4 (6.0.3) Multiple Instance to create Indd document with a Javascript script and XML rules. My problem is that the server often crash with errors like:

 

 

InDesignServer(13064,0xa0815720) malloc: *** error for object 0x168fb771: Non-aligned pointer being freed

 

*** set a breakpoint in malloc_error_break to debug

 

InDesignServer(13064,0xa0815720) malloc: *** error for object 0x168fb770: Non-aligned pointer being freed (2)

 

*** set a breakpoint in malloc_error_break to debug

 

InDesignServer(13064,0xa0815720) malloc: *** error for object 0x168fb770: Non-aligned pointer being freed (2)

 

*** set a breakpoint in malloc_error_break to debug

 

or

 

 

Server clxwebuser$ InDesignServer(14947,0xa0815720) malloc: *** error for object 0x1d078011: Non-aligned pointer being freed

 

*** set a breakpoint in malloc_error_break to debug

 

./indesignserver: line 13: 14947 Segmentation fault      "$installed_name" "$@"

 

or

 

 

./indesignserver: line 13:  1631 Bus error               "$installed_name" "$@"

 

 

I'm working with 2 instance which are quite frequently called to create page.

What can I do?

 

Thanks in advance.

 

 

Massimo

Getting unable to snap in error when trying to run indesign server as service

$
0
0

Hi,

 

I am trying to get the indesign server cs5 as a service to run at a particular port on 64bit windows vm platform. The documentation pointed towards trying to operate the .msc file in <installation_folder>/adobe/indesign x64/ folder.  However I am getting a snap-in error. I have tried installing it through mmc.exe, but fails with the same error. It is a trial version right now.

 

The error reads

"MMC could not create a snap in. The snap-in might not have been installed correctly.

Name: IndesignServerService

 

CLSI ID:{xxxxxxxxxxxxx}

"

 

I have uninstalled, reinstalled and restarted many times.

Any info will be helpful. I am wondering if all the dlls have been registered correctly.

 

Thanks

Ravi

Important Changes to InDesign Server CS6

$
0
0

There are a couple of changes that were introduced specific to InDesign Server in CS6.

 

1) Java APIs are no longer supported. All scripting must be done using the same scripting languages as InDesign Desktop (i.e. Javascript, VB, or Applescript). It seems that the development costs for the Java APIs were too high for continued support. If you are starting development on new projects that might be migrated to CS6 or later, you probably do not want to use Java.

 

This does not mean to say you cannot develop your apps in Java. You can still connect from a Java app via SOAP, but no Java API calls can be made. The documentation that will be shipped with ID Server CS6 has some guidlines for porting code to Javascript, and if you need any help, just pop on over to the Scripting forum...

 

2) CS6 introduces "Session Support". Calls made via SOAP can be executed in separate threads grreatly increasing performance for SOAP calls. This is different than separate instances in that all the sessions are run within the same instance of InDesign, but scripts can be executed in concurrent threads. So ID Server now has both multi-threaded and multi-instance support.

 

HTH,

Harbs

Using the JAVA ImportXmlTemplate function, should I always use XSL directory?

$
0
0

Using the JAVA ImportXmlTemplate function requires XSL directory, I do not need XSL for my updates, how can I workaround this requirement?

Best Practices for CS6 - Multi-instance (setup, deployment and LBQ)

$
0
0

Hi everyone,

 

We recently upgraded from CS5.5 to CS6 and migrated to a multi-instance server from a single-instance. Our current applications are .NET-based (C#, MVC) and are using SOAP to connect to the InDesign server. All in all it is working quite well.

 

Now that we have CS6 (multi-instance) we are looking at migrating our applications to use the LBQ features to help balance the workload on the INDS server(s). Where can I find some best practices for code deployment/configuration, etc for a .NET-based platform to talk to InDesign?

 

We will be using the LBQ to help with load management for sure.

 

Thanks for any thoughts and direction you can point me to.

 

~Allen

Viewing all 20709 articles
Browse latest View live


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