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

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


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.

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.

UserInteractionLevels is undefined

$
0
0

Hello All,

 

While exporting Indesign INDD file to INX file on CS3 Server using javascript (.jsx) I got following error...

 

Error Number: 2
Error String: UserInteractionLevels is undefined
Line: 12
Source:         app.scriptPreferences.userInteractionLevel = UserInteractionLevels.neverInteract;

 

Can you please suggest how to resolve this issue?

 

Thanks,

Shail

SOAP FAULT: SOAP-ENV:Client

$
0
0
Hi all,

I'm trying to get the Adobe InDesign Server to work, but having no experience with SOAP I'm running into a few problems.

After I make sure that the server is running I use the testclient to try HelloWorld.jsx
"testclient HelloWorls.jsx"

When executing this I get the following errors:
----
SOAP FAULT: SOAP-ENV:Client
"Unknown error"
Detail: TCP connect failed in tcp_connect()
---

Any ideas on how I can solve this? A few google searches about this problem gave me no relief...

Kind regards,
Tibor

Adobe Indesign Server 4 Failed to start

$
0
0

Hi All,

 

I have a big problem.

Finally we got access to download Adobe Indesign Server 4 Debug Version, but after installation, failed to start?!

Environment:

1, VMWare Guest System (2G Memory)

2, WIndows 2003 Server 32bit

3, Installation was good and we tried to run: InDesignServer.com in command line and it says:

C:\Program Files\Adobe\Adobe InDesign CS4 Server Debug>InDesignServer.com
The system cannot execute the specified program.

 

and when we run this from window:

Picture 2.png

 

Further more, I can see below message in Event Viewer:

Event Type:    Error
Event Source:    SideBySide
Event Category:    None
Event ID:    59
Date:        7/7/2009
Time:        10:34:31 PM
User:        N/A
Computer:    INDESIGN
Description:
Generate Activation Context failed for C:\Program Files\Adobe\Adobe InDesign CS4 Server Debug\InDesignServer.exe. Reference error message: The referenced assembly is not installed on your system.
.

 

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

 

 

Any help is much appreciated!!!!

 

Thanks,

xin

Replacing Placeholder Images and Text

$
0
0

Hello,

 

I am designing a system which needs to be able to replace images and text in InDesign documents with new versions.  For example, we might have many documents containing a company logo and want to replace the company logo in all of the documents with a new one.

 

I have InDesign Server CS4 and some of the Java CORBA samples up and running.  I have tried using data merge fields; I can get the com.adobe.ids.preferences.DataMerge objects for them but these objects don't seem to have any methods for updating the fields.  Perhaps data merging is not designed to do what I'm trying to achieve.

 

Can anyone suggest a way of defining placeholder images and replacing them programatically?

 

Thanks,

 

Francis

 

P.S. here is the code that I have so far:

 

import java.io.File;

import com.adobe.ids.*;
import com.adobe.ids.basics.*;
import com.adobe.ids.datamerge.DataMergeField;
import com.adobe.ids.enums.kSaveOptionsNo;
import com.adobe.ids.preferences.DataMerge;
import com.adobe.ids.sdk.utils.ApplicationUtils;

/**
* Demo of InDesign data merging using InDesign Server
*
* @author Bright Interactive
*/
public class DataMergeTest
{
    public static void main(String[] args) throws Exception
    {
        String ior = args[0];
        String inFileName = args[1];
        String outFileName = args[2];

        File testInFile = new File(inFileName);
        if (!testInFile.exists())
        {
            System.err.println(testInFile + " does not exist");
            System.exit(1);
        }

        Document doc = null;
        ApplicationUtils utils = new ApplicationUtils(ior);
        try
        {
            Application app = utils.getApplication();
            app.consoleout("DataMergeTest starting");
            VariableType vtFile = VariableTypeUtils.createFile(inFileName);
            doc = DocumentHelper.narrow(app.open(vtFile).asObject());

            DataMerge dataMerge = doc.getDataMergeProperties();
            // next line throws an IdsException :-(
//            DataMergeField pictureField = dataMerge.getNamedChildDataMergeField("Picture");
//            System.out.println("pictureField = " + pictureField);

            DataMergeField[] dataMergeFields = dataMerge.getAllChildDataMergeFields();
            for (int i = 0; i < dataMergeFields.length; i++)
            {
                DataMergeField dataMergeField = dataMergeFields[i];
                System.out.println(dataMergeField.getFieldName());
                if (dataMergeField.getFieldName().equals("Picture"))
                {
                    System.out.println("Found picture field");
                    // not sure what to do with dataMergeField now!
                }
            }


            app.consoleout("DataMergeTest done");
        }
        finally
        {
            if (doc != null)
            {
                try
                {
                    doc.close(OptArg.makeSaveOptionsEnum(kSaveOptionsNo.value),
                          OptArg.noFile(),
                          OptArg.noString(),
                          OptArg.noBoolean());
                }
                catch (IdsException e)
                {
                    e.printStackTrace();
                }
            }

            try
            {
                utils.destroyORB();
            }
            catch (Exception e)
            {
                e.printStackTrace();
            }
        }
    }
}

Missing Link for placed text file

$
0
0

Hello,

When we open a document in which a tagged text file is placed, InDesign Server throws Missing link error. The Links palette does not show any links. getAllChildLinks returns zero links too. Any idea how to get rid of this error?

 

Thank you

Musten Jiruwala


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

How to change the default logging location to a specified location in InDesign Server

$
0
0

I have configured the logs to be written to the Windows EventLogs using the command  -LogToApplicationEventLog while starting InDesign server instance. But is it possible to provide a log file location from where I can read the logs programatically?

 

Any help will be appreciated.

 

Thanks

Swarup

How to start Debug server? No Redistributables?

$
0
0

Hi everyone,

 

Having issues with trying to run a Debug server for development testing. The server is not on the same dev box as Visual Studio, etc. It's a standalone W2008R2 box. I have the Debug version installed for testing but when trying to run it I get the 'side-by-side configuration error'.

 

Did a quick search and just installed the 2005 C++ redistributables but still no go.

 

So how can I get this Debug server up and running so we can develop against it without using our Production license?

 

There is zero Adobe documentation on this that I have found and quite frustrating for sure.

 

Edit:

 

I did a sxstrace and here are the results:

 

 

=================
Begin Activation Context Generation.
Input Parameter:          Flags = 0          ProcessorArchitecture = AMD64          CultureFallBacks = en-US;en          ManifestPath = C:\Program Files\Adobe\Adobe InDesign CS5.5 Server x64 Debug\InDesignServer.com          AssemblyDirectory = C:\Program Files\Adobe\Adobe InDesign CS5.5 Server x64 Debug\          Application Config File =
-----------------
INFO: Parsing Manifest File C:\Program Files\Adobe\Adobe InDesign CS5.5 Server x64 Debug\InDesignServer.com.          INFO: Manifest Definition Identity is (null).          INFO: Reference: Microsoft.VC90.DebugCRT,processorArchitecture="amd64",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.21022.8"
INFO: Resolving reference Microsoft.VC90.DebugCRT,processorArchitecture="amd64",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.21022.8".          INFO: Resolving reference for ProcessorArchitecture amd64.                    INFO: Resolving reference for culture Neutral.                              INFO: Applying Binding Policy.                                        INFO: No publisher policy found.                                        INFO: No binding policy redirect found.                              INFO: Begin assembly probing.                                        INFO: Did not find the assembly in WinSxS.                                        INFO: Attempt to probe manifest at C:\Windows\assembly\GAC_64\Microsoft.VC90.DebugCRT\9.0.21022.8__1fc8b3b9a1e18e3b\Microsoft.VC90.DebugCRT.DLL.                                        INFO: Attempt to probe manifest at C:\Program Files\Adobe\Adobe InDesign CS5.5 Server x64 Debug\Microsoft.VC90.DebugCRT.DLL.                                        INFO: Attempt to probe manifest at C:\Program Files\Adobe\Adobe InDesign CS5.5 Server x64 Debug\Microsoft.VC90.DebugCRT.MANIFEST.                                        INFO: Attempt to probe manifest at C:\Program Files\Adobe\Adobe InDesign CS5.5 Server x64 Debug\Microsoft.VC90.DebugCRT\Microsoft.VC90.DebugCRT.DLL.                                        INFO: Attempt to probe manifest at C:\Program Files\Adobe\Adobe InDesign CS5.5 Server x64 Debug\Microsoft.VC90.DebugCRT\Microsoft.VC90.DebugCRT.MANIFEST.                                        INFO: Did not find manifest for culture Neutral.                              INFO: End assembly probing.          ERROR: Cannot resolve reference Microsoft.VC90.DebugCRT,processorArchitecture="amd64",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.21022.8".
ERROR: Activation Context generation failed.
End Activation Context Generation.

 

On the same server I have the Release version of 5.5 and it starts up with no issue. What's the point of the Debug/Developer version if it doesn't start? Do I need to reach out to my Adobe rep for answers on this?

 

Thanks for any help/tips/pointers.

 

~Allen

 

 

Message was edited by: AJDValien

Indesign refuses the socket connection with JVM, and not creating any response

$
0
0

Hi all,

 

I am facing the following error while trying to spray the indesign pdf.Actually we need to generate 100's of pdf but after 12 to 15 jobs indesign refuses the connection with JVM.So that is why JVM is not giving the response to indesign and the indesign stucks waitnig for java side's data.

 

(1) I have tried to increase the jvm memory using the  -Xms512M -Xmx1024M)

I am getting this error in eclipse console.

ClientAbortException:  java.net.SocketException: Connection reset by peer: socket write error

          at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:358)

          at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:434)

          at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:349)

          at org.apache.catalina.connector.OutputBuffer.writeBytes(OutputBuffer.java:381)

          at org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:370)

          at org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:89)

          at java.io.ObjectOutputStream$BlockDataOutputStream.drain(ObjectOutputStream.java:1838)

          at java.io.ObjectOutputStream$BlockDataOutputStream.setBlockDataMode(ObjectOutputStream.java :1747)

          at java.io.ObjectOutputStream.<init>(ObjectOutputStream.java:226)

          at com.apsiva.commframework.server.CommunicationServlet.sendSerializedResponse(Communication Servlet.java:155)

          at com.apsiva.commframework.server.CommunicationServlet.doPost(CommunicationServlet.java:79)

          at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)

          at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

          at org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:402)

          at org.apache.catalina.servlets.InvokerServlet.doPost(InvokerServlet.java:170)

          at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)

          at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:290)

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)

          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)

          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)

          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)

          at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.ja va:583)

          at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)

          at java.lang.Thread.run(Thread.java:619)

Caused by: java.net.SocketException: Connection reset by peer: socket write error

          at java.net.SocketOutputStream.socketWrite0(Native Method)

          at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)

          at java.net.SocketOutputStream.write(SocketOutputStream.java:136)

          at org.apache.coyote.http11.InternalOutputBuffer.realWriteBytes(InternalOutputBuffer.java:74 0)

          at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:434)

          at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:349)

          at org.apache.coyote.http11.InternalOutputBuffer$OutputStreamOutputBuffer.doWrite(InternalOu tputBuffer.java:764)

          at org.apache.coyote.http11.filters.ChunkedOutputFilter.doWrite(ChunkedOutputFilter.java:124 )

          at org.apache.coyote.http11.InternalOutputBuffer.doWrite(InternalOutputBuffer.java:573)

          at org.apache.coyote.Response.doWrite(Response.java:560)

          at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:353)

          ... 28 more

 

 

Thanks.

IDS export PDF doesn't work

$
0
0

Hi,

 

I try to apply a PDF-preset for a PDF export. But IDS throws a 404 if I append any parameters to the exportFile function:

 

That works:

doc.exportFile(  ExportFormat.PDF_TYPE, File("c:\\temp\\test.pdf"));

 

Neither this works:

doc.exportFile(  ExportFormat.PDF_TYPE, File("c:\\temp\\test.pdf"),false, "[PDF/X-3:2002]");

 

nor that

doc.exportFile(  ExportFormat.PDF_TYPE, File("c:\\temp\\test.pdf"),false);

 

in both cases IDS throws a 404.

Can anybody explain what's wrong?

 

Many thanks,

Stefan

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


FindChangeByList for CS6 Server?

$
0
0

Dear all,

 

can anybody please help me?

I am quite new to CS6 server and tried to use the well-known "FindChangeByList.jsx" on a generated document, but it doesn't work...

I did some changes to the script as described in the Scripting User Guide for the server version, but I am not sure if this was right as two or three chnages didn't make sense to me...

 

1. Replace the main() function with the following:

 

function main(){
if(app.documents.length > 0){
//Provide a story object or a document object.
myFindChangeByList(app.documents.item(0), false);
}
}

 

2.     Delete the myDisplayDialog function.

 

3.     Change the line:

 

 

var myFindChangeFile = "/c/FindChangeSupport/FindChangeList.txt";

 

to (you will have to fill in a valid file path for your system):

 

set myFindChangeFile to "yukino:FindChangeSupport:FindChangeList.txt"

--> Is this right?? This looked like AppleScript to me.
To me it made more sense to change it to

 

    var myFindChangeFile = "FindChangeSupport/FindChangeList.txt";

 

Doesn't a relative path work if the .txt file is in the specified subfolder?

Which would be the right syntax for Windows path like "\\myserver\somefolder\myscriptfolder\FindChangeSupport\FindChangeList.txt"?

 

4.     Delete the myFindChangeFile function.

--> I didn't find this function, I deleted the myFindFile function

 

5.     Delete the myGetScriptPath function.

 

 

On CS6 desktop version I use the unchanged script version which works well and replaces the things defined in the txt file.

 

 

 

After my changes my complete script looks like this, but nothing is replaced...

 

//FindChangeByList.jsx
//An InDesign CS4 JavaScript
/* 
@@@BUILDINFO@@@ "FindChangeByList.jsx" 2.0.0.0 10-January-2008
*/
//Loads a series of tab-delimited strings from a text file, then performs a series
//of find/change operations based on the strings read from the file.
//
//The data file is tab-delimited, with carriage returns separating records.
//
//The format of each record in the file is:
//findType<tab>findProperties<tab>changeProperties<tab>findChangeOptions<tab>description
//
//Where:
//<tab> is a tab character
//findType is "text", "grep", or "glyph" (this sets the type of find/change operation to use).
//findProperties is a properties record (as text) of the find preferences.
//changeProperties is a properties record (as text) of the change preferences.
//findChangeOptions is a properties record (as text) of the find/change options.
//description is a description of the find/change operation
//
//Very simple example:
//text    {findWhat:"--"}    {changeTo:"^_"}    {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, wholeWord:false}    Find all double dashes and replace with an em dash.
//
//More complex example:
//text    {findWhat:"^9^9.^9^9"}    {appliedCharacterStyle:"price"}    {include footnotes:true, include master pages:true, include hidden layers:true, whole word:false}    Find $10.00 to $99.99 and apply the character style "price".
//
//All InDesign search metacharacters are allowed in the "findWhat" and "changeTo" properties for findTextPreferences and changeTextPreferences.
//
//If you enter backslashes in the findWhat property of the findGrepPreferences object, they must be "escaped"
//as shown in the example below:
//
//{findWhat:"\\s+"}
//
//For more on InDesign scripting, go to http://www.adobe.com/products/indesign/scripting/index.html
//or visit the InDesign Scripting User to User forum at http://www.adobeforums.com
//
main();
function main(){
if(app.documents.length > 0){
//Provide a story object or a document object.
myFindChangeByList(app.documents.item(0), false);
}
function myFindChangeByList(myObject){    var myScriptFileName, myFindChangeFile, myFindChangeFileName, myScriptFile, myResult;    var myFindChangeArray, myFindPreferences, myChangePreferences, myFindLimit, myStory;    var myStartCharacter, myEndCharacter;    var myFindChangeFile = "FindChangeSupport/FindChangeList.txt";    if(myFindChangeFile != null){        myFindChangeFile = File(myFindChangeFile);        var myResult = myFindChangeFile.open("r", undefined, undefined);        if(myResult == true){            //Loop through the find/change operations.            do{                myLine = myFindChangeFile.readln();                //Ignore comment lines and blank lines.                if((myLine.substring(0,4)=="text")||(myLine.substring(0,4)=="grep")||(myLine.substring(0,5)=="glyph")){                    myFindChangeArray = myLine.split("\t");                    //The first field in the line is the findType string.                    myFindType = myFindChangeArray[0];                    //The second field in the line is the FindPreferences string.                    myFindPreferences = myFindChangeArray[1];                    //The second field in the line is the ChangePreferences string.                    myChangePreferences = myFindChangeArray[2];                    //The fourth field is the range--used only by text find/change.                    myFindChangeOptions = myFindChangeArray[3];                    switch(myFindType){                        case "text":                            myFindText(myObject, myFindPreferences, myChangePreferences, myFindChangeOptions);                            break;                        case "grep":                            myFindGrep(myObject, myFindPreferences, myChangePreferences, myFindChangeOptions);                            break;                        case "glyph":                            myFindGlyph(myObject, myFindPreferences, myChangePreferences, myFindChangeOptions);                            break;                    }                }            } while(myFindChangeFile.eof == false);            myFindChangeFile.close();        }    }
}
function myFindText(myObject, myFindPreferences, myChangePreferences, myFindChangeOptions){    //Reset the find/change preferences before each search.    app.changeTextPreferences = NothingEnum.nothing;    app.findTextPreferences = NothingEnum.nothing;    var myString = "app.findTextPreferences.properties = "+ myFindPreferences + ";";    myString += "app.changeTextPreferences.properties = " + myChangePreferences + ";";    myString += "app.findChangeTextOptions.properties = " + myFindChangeOptions + ";";    app.doScript(myString, ScriptLanguage.javascript);    myFoundItems = myObject.changeText();    //Reset the find/change preferences after each search.    app.changeTextPreferences = NothingEnum.nothing;    app.findTextPreferences = NothingEnum.nothing;
}
function myFindGrep(myObject, myFindPreferences, myChangePreferences, myFindChangeOptions){    //Reset the find/change grep preferences before each search.    app.changeGrepPreferences = NothingEnum.nothing;    app.findGrepPreferences = NothingEnum.nothing;    var myString = "app.findGrepPreferences.properties = "+ myFindPreferences + ";";    myString += "app.changeGrepPreferences.properties = " + myChangePreferences + ";";    myString += "app.findChangeGrepOptions.properties = " + myFindChangeOptions + ";";    app.doScript(myString, ScriptLanguage.javascript);    var myFoundItems = myObject.changeGrep();    //Reset the find/change grep preferences after each search.    app.changeGrepPreferences = NothingEnum.nothing;    app.findGrepPreferences = NothingEnum.nothing;
}
function myFindGlyph(myObject, myFindPreferences, myChangePreferences, myFindChangeOptions){    //Reset the find/change glyph preferences before each search.    app.changeGlyphPreferences = NothingEnum.nothing;    app.findGlyphPreferences = NothingEnum.nothing;    var myString = "app.findGlyphPreferences.properties = "+ myFindPreferences + ";";    myString += "app.changeGlyphPreferences.properties = " + myChangePreferences + ";";    myString += "app.findChangeGlyphOptions.properties = " + myFindChangeOptions + ";";    app.doScript(myString, ScriptLanguage.javascript);    var myFoundItems = myObject.changeGlyph();    //Reset the find/change glyph preferences after each search.    app.changeGlyphPreferences = NothingEnum.nothing;    app.findGlyphPreferences = NothingEnum.nothing;
}

Differences between Dektop and Server - JS

$
0
0

Hello All,

 

Could anyone help me to have the list of differences (as an documentation) between Dektop and Server version to write JS?

 

Thanks,

 

Praveen

How to get CORBA LBQ started as a Windows service for InDesign Server CS6?

$
0
0

So we have a production InDesign Server (CS6) running 4 instances. The instances are set to start as Windows services and no issues there at all. The problem is my Clover commands that handles the LBQ to manage those instances. Right now I have a .bat file that I run manually and it opens a command prompt and runs it there.

 

The problem is that if the server gets logged off or reboots then that Clover part dies and my LBQ dies with it.

 

How can I go about setting this up as a Windows service so that it runs automatically?

ExtendScript Toolkit cannot launch InDesign CS6 Server

$
0
0

I have installed the trial version of InDesign Server CS6 on Windows 2008 and am trying to run scripts against it using the ExtendScript Toolkit, but it is not working. When I select "Adobe InDesign CS6 Server" from the drop-down list in the upper left, I get an alert box that says "Cannot launch target Adobe InDesign CS6 Server!". When expanding the details box it just repeats that same message.

 

I can start InDesign fine using either the command line or the windows service and it responds to requests. As far as I can see, it is just ExtendScript that is having problems with it.

 

I have combed through the event logs and can't find anything there indicating what the problem might be. I have also googled everything I can think of looking for a solution with no luck.

 

Has anyone else run into this? Any suggestions on a solution or at least where I might be able to track down a useful error message that says why it can't launch InDesign?

Indesign server trial not licensing

$
0
0

i am trying to get Indesign server Trial working... without any result.

 

this is the result in adobe_prtk

 


Copyright 2012 Adobe Systems Incorporated

All rights reserved.

StartTrial Successful

Return Code = 0

 

still get no working server

 

message

 

ERROR[server] Adobe InDesign Server is not properly licensed and will now quit.

Anyone any idea ??

 

Peter

Viewing all 20709 articles
Browse latest View live


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