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

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


InDesign Server SOAP API - Status check

$
0
0

Hi,

 

I am running 5 InDesign ports and sending jobs using "Sample Client" SOAP method. For some unknown reason, some ports got crash or not responding. How can I check whether particular port is running without "crash or not-response"? So that, I can notify this by automatically, and send the job to another port.

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

InDesign Server CS6 cannot open more than 140 files? Error 3588.

$
0
0

I'm testing InDesign Server CS6. One instance, one thread. Is it not able to keep opened more than 140 concurrent files?

 

Console Server gives me this Error: 3588.

 

Thanks,

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?

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.

Unable to use sample-java-soap client

$
0
0

Hi all,

 

I am trying to use sample client for java given with indesign server SDK.

 

I am trying to compile it using indesign however I imported all the libraries it is still not importing the following libraries.

 

import localhost.Service_wsdl.Service;

import localhost.Service_wsdl.ServiceLocator;

import localhost.Service_wsdl.ServicePortType;

 

import com.adobe.ns.InDesign.soap.IDSPScriptArg;

import com.adobe.ns.InDesign.soap.RunScriptParameters;

import com.adobe.ns.InDesign.soap.holders.DataHolder;

 

These libraries are not getting imported. Can any body help me where can I find out these libraries or else if anyone of u used sample-java-soap client please help me.

InDesign Server Developer Edition, PDF export problem

$
0
0

I'm currently testing our application on IDS CS5, using Developer Edition. Whenever I attempt to export a PDF, I receive the following error:

Wed Mar  2 10:17:29 2011 WARN [server] Colour in one or more placed graphics cannot be represented as CMYK.  Non-CMYK colour is not compliant with the PDF/X-1a standard. You can click OK to produce a valid PDF, but it will not be a PDF/X-1a compliant file.
Wed Mar  2 10:17:29 2011 ERROR[server] JavaScript Error!
Error Number: 2
Error String: User cancelled this action.
Engine: main
Line: 1428
Source: this.document.exportFile(ExportFormat.pdfType, documentFile);
Interpreter: CS4 (6.0)

This happens even with a completely blank document. It works fine if I export JPGs or an INDD file from the same file. I'm guessing this is due to the watermark that Developer Edition places on every page. I'm fine with that, but not actually being able to export an X-1a PDF makes testing quite tricky.

Any suggestions?


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

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

INDS PDF export issue

$
0
0

Hi,

 

Exporting large document from InDesign takes significantly long time in InDesign CS6 server. Our document has minimum 1200 page needs to be exported to PDF. It takes around 12 minute to export with "smallest file size" preset. Our requirement is to export quick PDF rather then smallest size pdf.

Can some one suggest best setting to fastest PDF export from InDesign. Here is PDF export settings that we use as alternate to "smallest file size" ?

 

 

//Basic PDF output options.            pageRange = PageRange.allPages;            acrobatCompatibility = AcrobatCompatibility.acrobat6;            exportGuidesAndGrids = false;            exportLayers = false;            exportNonPrintingObjects = false;            exportReaderSpreads = false;            generateThumbnails = false;            includeBookmarks = false;            includeHyperlinks = true;            includeICCProfiles = true;            includeSlugWithPDF = false;            includeStructure = false;            interactiveElementsOption = InteractiveElementsOptions.doNotInclude;            //Setting subsetFontsBelow to zero disallows font subsetting;            //set subsetFontsBelow to some other value to use font subsetting.            subsetFontsBelow = 0;            //Bitmap compression/sampling/quality options.            colorBitmapCompression = BitmapCompression.AUTO_COMPRESSION;            colorBitmapQuality = CompressionQuality.LOW;            colorBitmapSampling = Sampling.BICUBIC_DOWNSAMPLE;            colorBitmapSamplingDPI = 100;            thresholdToCompressColor = 150;            //colorBitmapSamplingDPI is not needed when colorBitmapSampling is set to            //none.            grayscaleBitmapCompression = BitmapCompression.AUTO_COMPRESSION;            grayscaleBitmapQuality = CompressionQuality.LOW;            grayscaleBitmapSampling = Sampling.BICUBIC_DOWNSAMPLE;            grayscaleBitmapSamplingDPI = 150;            thresholdToCompressGray = 225;            //grayscaleBitmapSamplingDPI is not needed when grayscaleBitmapSampling is            //set to none.            monochromeBitmapCompression = MonoBitmapCompression.CCIT4;            monochromeBitmapSampling = Sampling.BICUBIC_DOWNSAMPLE;            monochromeBitmapSamplingDPI = 300;            thresholdToCompressMonochrome = 450;            //monochromeBitmapSamplingDPI is not needed when monochromeBitmapSampling            //is set to none.            //Other compression options.            compressionType = PDFCompressionType.compressObjects;            compressTextAndLineArt = true;            cropImagesToFrames = true;            optimizePDF = false;            pdfDestinationProfile = "sRGB IEC61966-2.1";            pdfColorSpace = PDFColorSpace.RGB;            //Set viewPDF to true to open the PDF in Acrobat or Adobe Reader.            viewPDF = false;

 

Many thanks in advance

Mac

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

Return code 6 when trying to activate trial of InDesignCC Server 2014

$
0
0

Hi!

 

I keep on having the "return code 6" when I try to activate a trial version InDesign CC Server 2014 (pc) with APTEE:

i try to use the commande adobe_prtk --tool=StartTrial --leid=InDesignServer-10-Win-GM

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


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

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

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.

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

INDESIGN SERVER GET LOCKED ON EXECUTING SCRIPT

$
0
0

Hi

Is there any method in jsx to unlock the indd file from indesign server.

currently indesign cc 2014 server is locking the indd files generated due to linking error in the server logs.

Viewing all 20709 articles
Browse latest View live


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