🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.document.graphics.server
Article #210

EPS to GIF

#210
From: Anish_Nair
Date: Tue, 31 Aug 2004 13:20
46 lines
1835 bytes
I am developing an application to convert EPS to GIF using .Net/C#. I am using the service of AlterCast.

I am using the following commands for convertion

//******************************
Request request = new Request();

StringBuilder adobeCommands= new StringBuilder();

adobeCommands.Append("<commands>");
adobeCommands.Append("<loadContent source='2001-australia04.eps' >" );
adobeCommands.Append("<saveOptimized name = '2001-australia04.gif'>");
adobeCommands.Append("</commands>");

request.commands = adobeCommands.ToString();

request.files = new RequestFile[1];
request.files[0] = new RequestFile();
request.files[0].name = "source_file";
request.variables = new RequestVariable[0];

try
{
 Service service = new Service(ServiceLocation);
 Response response = service.Execute(request);
 ResultFile resultfile = response.files[0];
 byte[] data = resultfile.data;

String outpath = "c:\\temp\\test.gif";
 System.IO.FileStream outstream = System.IO.File.OpenWrite(outpath);

}

catch( Exception ex)
 {
	throw(ex);
}
//******************************

Now it throws exception on service.Execute(request).

Please let me know if there is any problem with this code.

Thanks

Anish Nair
Technical Details
Message-ID: <3bb5b53c.-1@webx.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.zanker.org!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!webx

Show Full Headers
Complete Article Headers
X-Google-Thread: 1effe5,509bd21a9849fdb0,start
X-Google-Attributes: gid1effe5,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Anish_Nair@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.zanker.org!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.document.graphics.server
Subject: EPS to GIF
Message-ID: <3bb5b53c.-1@webx.la2eafNXanI>
Date: Tue, 31 Aug 2004 06:20:58 -0700
Lines: 47
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit