Adobe AlterCast

Has anyone done any dev work with this software. I'm new to java, and am having problems compiling this...
import com.adobe.altercast.sdk.*;
import com.adobe.altercast.samples.utils.*;
import java.io.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class ReplaceText {
StringBuffer alterCastCommands = new StringBuffer();
alterCastCommands.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n");
alterCastCommands.append("<commands>\n");
alterCastCommands.append("\t<loadContent source="C:/altercastpsds/greybox.psd"/>\n");
alterCastCommands.append("\t<replaceText
               target="/psd/layer[@name='text']"
               text="test" />\n");
alterCastCommands.append("\t<saveOptimized name="C:/test.gif" />\n");
alterCastCommands.append("</commands>\n");
Server acServer = AlterCastServers.acquireServer(getServletContext().getRealPath("/"));
Request acRequest = AlterCast.createRequest();
acRequest.setCommands(altercastCommands.toString());
IAlterCastResponse iResponse = new AlterCastResponse();
Response acResponse = acServer.execute(acRequest);
iRequest.setCommands(AlterCastCommands.toString());
iResponse.receive(iServ.send(iRequest));
These are the errors generated...
C:\>15 errors
'15' is not recognized as an internal or external command,
operable program or batch file.
C:\>javac "C:\altercast\java\ReplaceText.java"
C:\altercast\java\ReplaceText.java:12: <identifier> expected
alterCastCommands.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n");
^
C:\altercast\java\ReplaceText.java:13: <identifier> expected
alterCastCommands.append("<commands>\n");
^
C:\altercast\java\ReplaceText.java:14: <identifier> expected
alterCastCommands.append("\t<loadContent source="C:/altercastpsds/greybox.psd"/>
\n");
^
C:\altercast\java\ReplaceText.java:15: <identifier> expected
alterCastCommands.append("\t<replaceText
^
C:\altercast\java\ReplaceText.java:15: unclosed string literal
alterCastCommands.append("\t<replaceText
^
C:\altercast\java\ReplaceText.java:17: illegal character: \92
text="Pentium 4 mobile processor" />\n");
^
C:\altercast\java\ReplaceText.java:17: unclosed string literal
text="Pentium 4 mobile processor" />\n");
^
C:\altercast\java\ReplaceText.java:29: ';' expected
iResponse.receive(iServ.send(iRequest));
^
C:\altercast\java\ReplaceText.java:2: package com.adobe.altercast.samples.utils
does not exist
import com.adobe.altercast.samples.utils.*;
^
C:\altercast\java\ReplaceText.java:5: package javax.servlet does not exist
import javax.servlet.*;
^
C:\altercast\java\ReplaceText.java:6: package javax.servlet.http does not exist
import javax.servlet.http.*;
^
C:\altercast\java\ReplaceText.java:12: package alterCastCommands does not exist
alterCastCommands.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n");
^
C:\altercast\java\ReplaceText.java:13: package alterCastCommands does not exist
alterCastCommands.append("<commands>\n");
^
C:\altercast\java\ReplaceText.java:14: package alterCastCommands does not exist
alterCastCommands.append("\t<loadContent source="C:/altercastpsds/greybox.psd"/>
\n");
^
C:\altercast\java\ReplaceText.java:15: package alterCastCommands does not exist
alterCastCommands.append("\t<replaceText
^
15 errors

First of all, throw this code in something. A static block, a method, a constructor... something.
Second... you have quotations inside your strings, as in
alterCastCommands.append("\t<loadContent source="C:/altercastpsds/greybox.psd"/>\n");
You can escape these with a backslash (\) as in
alterCastCommands.append("\t<loadContent source=\"C:/altercastpsds/greybox.psd\"/>\n");
Third.. looks like you're having trouble importing those altercast files. Make sure your classpath points to either the root of the directory structure that holds those class files, or else the .jar file that contains them
Give those things a run through, and see what happens.

Similar Messages

  • Application launched from Windows using Unix Adobe Document Server  Issue

    Hello,<br /><br />Sample application is written to merge two or more pdf files using Adobe Document Server.The sample application is using Webservice and laucnhed from Winodows and the AdobeDocument Server is in Unix.<br />I am getting following error:<br /><br />java.lang.UnsupportedOperationException: DON'T USE read()!!!<br />     at com.adobe.altercast.sdk.utils.FixedLengthInputStream.read(Unknown Source)<br />     at org.apache.xerces.impl.XMLEntityManager$RewindableInputStream.read(Unknown Source)<br />     at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source)<br />     at org.apache.xerces.impl.XMLEntityManager.startDocumentEntity(Unknown Source)<br />     at org.apache.xerces.impl.XMLDocumentScannerImpl.setInputSource(Unknown Source)<br />     at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)<br />     at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)<br />     at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)<br />     at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)<br />     at com.adobe.altercast.sdk.impl.webservice.parsers.SOAPParserBase.parse(Unknown Source)<br />     at com.adobe.altercast.sdk.impl.webservice.envelopes.ResponseEnvelope.parse(Unknown Source)<br />     at com.adobe.altercast.sdk.impl.webservice.methods.WebMethod.invokeRemotely(Unknown Source)<br />     at com.adobe.altercast.sdk.impl.webservice.ServerWebService.invokeWebMethod(Unknown Source)<br />     at com.adobe.altercast.sdk.impl.webservice.ServerWebService.execute(Unknown Source)<br />     at PDFMerge.merge(PDFMerge.java:364)<br /><br />The same application works when I launch from Unix, so I was guessing its the Pdf file paths in windows. I found the following link for UNC path issue for Adobe Document Server:<br />http://support.adobe.com/devsup/devsup.nsf/docs/53397.htm<br /><br />The latest commands.xml file:<br />The xml file for PDF Merge:<br /><?xml version="1.0" encoding="UTF-8"?><commands><br /><loadContent source="file:///c:/pdf/test1.pdf" out="f1"/><br /><loadContent source="file:///c:/pdf/test2.pdf" out="f2"/><br /><assemblePDF><br /><document source="f1"/><br /><document source="f2"/><br /></assemblePDF><br /><saveContent name="file:///c:/pdf/test_merge_ts.pdf"/><br /></commands><br /><br />Still I am having the same error mentioned above.<br /><br />I am using following piece of code to launch webservice:<br />http://UnixServerName:8019/altercast/AlterCast<br /><br />Thanks in advance for any suggestion to resolve my issue.<br /><br />Sridhar

    It might be deliberate, Acrobat and Reader software is not intended to run in a service environment.

  • Cannot add rights  Error 400

    I cannot add rights to my adobe files. I get the error:
    Error 400: We were unable to add usage rights to your document 'sf0086.pdf': 'com.adobe.altercast.sdk.AlterCastException: Could not process the request because the rights ID could not be added because of PDFLib error (sev=4, sys=3, code=40.'.
    I stopped and restarted the altercast service, but still no luck.
    What can I do?
    John
    New Orleans

    The spooler is part of WIndows, if it is stopped (or broken), no printer will work.Try clear and restart the spooler (this page may help: http://hpanswers.blogspot.com/2008/10/how-to-start-stop-and-restart-print.html and if this doesn't solve the problem, you need to reinstall Windows (or run a system recovery to reset Windows).

  • Upgrading From Altercast to Livecycle

    Hi
    I was looking for some direction.  We currently use Adobe Document Server 5.0 and the Altercast Web Service to pass XML to a template and for it to pass us back a pdf document.  We have been advised that Lifecycle is the way forward.  I was wondering if the Output Module would be the correct module to use for this?  Does anybody have any pointers in this direction.
    Any help would be gratefully recieved.
    Many Thanks
    Chris

    If you have PDF templates then it is more likely you are using PDF which have fields added via Acrobat then the data is in FDF or XFDF format. LiveCycle Designer does not support this format.
    Check - http://help.adobe.com/en_US/LiveCycle/9.5/WorkbenchHelp/WS92d06802c76abadb-1bb6724d12826be 9e66-8000.html looks like it might work for you with FDF data; note this is a component of Forms not Output; but see if it works for you first with trial S/W; then look at licensing.
    Otherwise the LiveCycle path is to use LC Designer to import your PDF; it may convert your fields to LC Designer (XFA) model format - i am not 100% sure. I did find this rather old document discussing the topic. http://partners.adobe.com/public/developer/en/acrobat/sdk/AcroJS_DesignerJS.pdf
    The FDF format data would be close to the format LC Output/Forms ES would need but would still need some changes.
    BTW Forms is for Interactive PDF and Output is for PDF Documents – not sure if interactivity is part of what you are trying to achieve or not.
    There are likely other people on the forum that have much more insight into the technical aspcts of this than I; but I hope these thoughts will help you.

  • Enterprise Adobe Cloud

    Is there any plan for an enterprise version of adobe cloud?

    http://www.adobe.com/au/products/creativecloud/buying-guide-membership.html
    Creative Cloud for organizations
    Later this year, Adobe will release Adobe Creative Cloud Team, a version of Creative Cloud membership specifically for organizations. Until then, Creative Cloud Team Ready gives companies immediate access to all the CS6 tools and more, plus it serves as an onramp to Creative Cloud Team when it's available.
    Volume licensing customers can take advantage of the Creative Cloud Team Ready offering through Adobe’s Transactional Licensing Program (TLP) which is based on a one-year term agreement and is available for purchase through any Adobe corporate resellers. Customers who choose this option will automatically be transitioned into Creative Cloud Team membership as soon as it becomes available later in 2012.

  • Error in starting Adobe Bridge in Photoshop CS2

    I've just installed Photoshop CS2, however upon opening Adobe Bridge this error message appears " The application has failed to start because libagluc28.dll was not found. Reinstalling to application may fix the problem"
    I have reinstalled and click repair but to no avail
    I followed Adobe Support Knowledgebase solution and run CMD and this appears:
    c:Documents and Settings/Jesus M Ferraris>
    then i entered the command
    cacls c:\windows\installer /T /E /C /G administrators:F
    but an error message appears - 'cacls' is not recognized as an internal or external command, operable program or bathc file
    I also entered the next command
    cacls "c:\documents and setting\all users" /Y /E /C /G administrators:F
    still the same error as above appears, Please help, have I miss something or was my procedure correct...
    P4, 512ram, WXP 80gHD

    Very useful.
    Good Luck.
    My
    Si
    tes

  • How can I update my old behance account into a new Adobe ID one?

    My original behance account used an email address that was not linked to my Adobe ID so I ended up creating a new account by accident when prompted by the "Use your Adobe ID below to log in to Behance from now on." Now I can't use my name and I can't access anything from my old account.

    Hi - we can definitely help! To have a private convo where we can give you your accont info, please write us a ticket here and someone will get back to you ASAP:
    Behance Support & Forum : Submit a request for assistance

  • Error Message: Need to purge Cache in Adobe Bridge CC (on PC)

    I tried purging using Adobe Bridge by going to Edit/Preferences/Cache then purging, but it becomes non responsive.  The error message said the problem files were at Users/(my user name)/AppData/Roaming/Adobe/BridgeCC/Cache.   There are 4 files in there that are taking up 124 GB!  Can I simply delete these files or will it corrupt my regular files?  I tried doing as some other forums suggested and hold the ALT key down when opening Bridge before purging, but no luck.

    Yes, you can delete the cache files manually,  Just be advised that Bridge will become very, very slow until it finishes rebuilding its caches.  Depending on your files, that can take a few minutes or several hours.
    A good way of doing it is at night, so you can do it before going to bed and let Bridge rebuild caches overnight.
    If you can, save the cache files before deleting them to an external drive, so that you'll have them as backup if something goes wrong.

  • Adobe Stock Photos Stuck in Trash and Photoshop CS2 won't run!

    Okay, I apparently did something stupid. I'm not even sure how this happened, but I realized that Adobe Stock Photos folder was sitting on my desktop (I'm using OS X 10.5.6). I don't know when this happened and I didn't think I needed it so I dragged it to the trash. NOW I cannot run any of my Adobe software (includes Photoshop CS2, Illustrator CS2 and GoLive CS2).
    I can see the folder sitting in my trash, but it won't let me drag it back out. So, just as a test, I tried dragging out the one other file (.jpg) and I can't get that one either. I know this isn't a Mac forum, but I'm desparate and cannot find anything to help me.
    Probably I am going to have to reinstall everything and (of course) I can't find my CDs!!! Please don't get angry if I'm asking the wrong question. I've done an internet search and I cannot find any solutions.
    Thanks, Anne

    Adobe stock photos does not even exist anymore.
    Have you tried deleting your trash? I have no Adobe stock Photos on my computer and everything works. try restarting the computer.

  • Adobe Photoshop CS2 posterization problem on vignette

    I am having a problem with posterization in my image. When I try to vignette my photo (with black) it starts to block up in areas, mostly in the darkest part of the gradient. It ends up not making a smooth transitional gradient and leaves a line where it blocks up. It shows up on the screen as well as on the print. I have a calibrated LaCie CRT 19" monitor, G5 and I am working from digital raw files from a Fuji S2 that are AdobeRGB and also film scans that have done the same thing. What can I do to prevent this? Is it something to do with my G5 or is it the software in Photoshop? If there is any info that left out to help solve the problem please let me know!
    G5   Mac OS X (10.4.5)  

    If it shows up on screen and in print, then issue is with the software.
    Adobe has forums. Might try there.
    best wishes
    David
    Remember to mark an response helpful or solved.
    It protects the integrity of the board.

  • Adobe Photoshop CS2

    Topic
    Photoshop CS2 and Nikon D200
    Chuck Dell - 09:20am Dec 19, 2005 Pacific
    Just purchased new Nikon D200. RAW Images will not open in Photoshop CS2. Receive Adobe Photoshop CS2 error message "Could not complete your request because of a program error." Images taken with this camera will open in Nikon Capture 4.4 and then can be transferred to CS2 But attempting to open RAW images directly with CS2 is futile.
    Images taken with Nikon D2h and Nikon D100 flow perfectly through CS2
    Only images taken with Nikon D200 will not open in CS2.
    Is this Nikon problem or an Adobe problem?
    Reply To This Discussion | Back to Topic List | Bookmark | Subscribe
    To start a NEW discussion click on the Back to Topic List link and select Add Topic.
    If you are in an archive forum please go up to the main topic list (archives are read only).
    Messages 2 messages. Displaying 1 through 2.
    First Previous Next Last Show All Messages
    Joseph liftik - 11:12am Dec 19, 05 PST (#1 of 2)
    Wait for Adobe update on ARC that will support D200.
    Post Reply | Bookmark
    Chuck Dell - 12:11pm Dec 19, 05 PST (#2 of 2)
    Excuse me, but what is ARC?
    And does anyone know when Adobe will release supporting update?
    Post Reply | Bookmark | Edit

    upon importing i had the option of selection importinf from a "PICT Resource..."
    this was the only option that allowed me to select my JPG images (digital caerma images, btw)
    when i select and clikc OK, a message that comes up that says "There are no PICT resources in this file"
    moreover, when i convert the JPG images to PICT images (via preview) i get the same message
    strange, since i've been able to copy and past my JPG files all along until now...

  • Adobe Photoshop CS2 has encountered a problem and needs to close.

    Just starting to get this error on open in CS2 after a few months of smooth sailing on a new system (below). CS2 now cannot open. It started occasionally and increased. Tried reinstalling. Tried deleting the PS config files and same error. Any suggestions?
    Here's a sysinfo paste of my system.
    Nick
    XP pro SP2
    Small Bus. Server network node
    Profile- Username.DOMAIN
    PHOTOSHOP
    Photoshop CS2 (upgrade from ver. 6)
    C:\Program Files\Adobe\Adobe Photoshop CS2\9.0
    MB - ASUS P5K-E
    Disk C: 819 GB Available, 931 GB Total, 819 GB Free
    Disk D: 96 GB Available, 232 GB Total, 96 GB Free
    Intel ICH8R/ICH9R SATA RAID Controller
    Physical Memory 2048 MB Total, 1149 MB Free
    Virtual Memory 4740 MB Total, 3900 MB Free
    PageFile Name \??\C:\pagefile.sys
    PageFile Size 800 MB
    PageFile Name \??\D:\pagefile.sys
    PageFile Size 2047 MB
    One Physical Processor / 2 Cores / 2 Logical Processors / 64 bits
    Intel Core2 Duo CPU E8400 @ 3.00GHz
    Video1: ATI Radeon HD 3800 Series
    Video2: ATI Radeon HD 2400 PRO
    Memory Capacity 2048 MBytes
    Slot 1
    Corsair
    CM2X1024-8500C5D
    1024 MBytes
    DDR2-800 (400 MHz) running 1066
    64 bits
    Voltage SSTL 1.8V
    Slot 3
    Corsair
    CM2X1024-8500C5D
    1024 MBytes
    DDR2-800 (400 MHz) running 1066
    64 bits
    Voltage SSTL 1.8V

    Just ran memtest and received no errors. This more or less clears the hardware. I have no idea how to proceed. Does adobe offer any direct support for this sort of problem?

  • Error 400 when trying to sign-in to Adobe Photoshop 9 [was:Error]

    Getting an Error 400 when trying to sign-in to Adobe Photoshop 9.  What is the problem?

    http://barbarabrundage.com/2013/09/16/pse-8-9-10-cant-sign-in-error-404/
    Cheers,
    Neale
    Insanity is hereditary, you get it from your children
    If this post or another user's post resolves the original issue, please mark the posts as correct and/or helpful accordingly. This helps other users with similar trouble get answers to their questions quicker. Thanks.

  • In adobe bridge in Tools menu below the cache submenu it only says "process collections in Photoshop". It does not give me the option to "load images in layers is Photoshop"

    No tengo la opción de cargar imagenes en capas en photoshop desde adobe bridge en el menu herramientas

    If all the items do not appear, consider resetting Bridge Preferences.
    Close Bridge, hold down Command-Option-Shift (PC: Control-Alt-Shift) and then launch Bridge again. A dialog will appear asking what you want to do. Turn on the Reset Preferences checkbox and click OK. Now when Bridge appears, the preferences are factory-fresh.

  • Adobe Bridge in advertising agency

    Hello,
    i work in advertising agency Made by Vaculik (formerly Vaculik Advertising), we are located in Europe/Slovakia/Bratislava and we was using Adobe Bridge since CS2 release. CS3 was longest used and we was VERY satisfied with its technology. Creative, graphics and DTP department worked closely on each project, every save was synchronized with our server with name of user etc. It was much better environment than find latest version on someone's computer. But since CS6 it is not longer supported internal servers, only cloud engine. We are ad agency that primarily sells ideas and we simply cannot store our data on external servers, so i and my collegaues are VERY surprised that this technology was changed to different target group. We was probably first bigger agency who used this technology in Czech and Slovak republic and nowadays we are searching for similar solutions for our needs, but for example we are preparing really some YEARS to implement Alfresco with JIRA, but it got many problems. So what Adobe, really we are only agency in the world who missed Bridge to use with our internal servers? Cheers.
    Martin Demsky

    How to use Windows Task Manager
    Creative Suite Cleaner Tool
    Run the drill, reinstall everything.
    Mylenium

Maybe you are looking for

  • Completely DEAD iPhone 3GS, Data Recovery ?HELP?

    I have a iPhone 3GS 16GB, The other day it just went off? tried unplugging it from the mains and plugging it back in again, but nothing happened. I tried to get it to go into DFU mode, Nothing! Plugged it into my Desktop PC, Nothing showed in itunes?

  • Video Monitoring System

    I have just downloaded the Cisco Video Monitoring System. The look and feel are GREAT! BUT... I cant seem to figure out how to make it work for me I have 2 monitors i would like the Cisco Video Monitoring System on SCREEN #2 not Screen #1.. and there

  • How to run multiple reports From One Form with 1 report object?

    Hi ALL! i want to run multiple reports (in 10g technology) from 1 Form having only 1 report object. i.e IF parameter=yes THEN Rpt_new should run Else Rpt_old should run END IF; How can i do this? thanks rana

  • JavaBeans - Software Requirements for EJB - Stateless

    Dear Experts, Please state the list of software requirements for executing EJB-Stateless bean if possible along with an example & steps for execution. Adv.Thanks, Rengaraj.R

  • Tabular form on multiple tables

    Hi there, I'm hoping to create a Tabular Form which is based on either a view or a join, whichever is easier. We have two tables - Division and Targets. Division references Targets on target_id. The tables share a one-to-one relationship. I was origi