I did not try adding the fonts directory but tried every other thing to get
this working, but it didn’t.

I did a similar solution as you have, but instead of a batch file I
developed a windows service that will perform the task since I had to handle
multiple PDF conversions at one given time.

 

You are correct that working it this way makes it very difficult to handle
exceptions but I have made a log which gathers all the exception. I had to
make this asynchronous since there was no other option.

 

I totally agree with you that we should have it as a COM or .net object.
Hope someone comes up with it pretty soon.

 

Regards,
Abhishek Bagga



 

   _____  

From: John H. Ramsey [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 15, 2007 8:00 PM
To: 'Abhishek Bagga'
Subject: RE: [Swftools-common] Unable to run the Pdf2Swf through a web
serviceon windows 2003

 

I have a similar web service running.  It took me a while to work out all of
the permissions, etc.  For instance, I needed to add a C:\swftools\fonts
directory to get around registry access problems.  

 

I created a batch file that the web service calls that in turn calls the
pdf2swf.exe.  It helped me separate problems on the web service side vs.
specific problems with the pdf2swf.exe.

 

You will need to work out another problem that I have yet to solve properly.
As a separate process, if the pdf2swf fails, it doesn't throw the exception
back to the web service, it throws it to the OS.  If you wait for the
process to execute, your thread that called the exe will be waiting forever.
If you get multiple bad requests, your server resources could take a
hit(especially if you have Dr. Watsons popping up).

 

Does anyone have a good solution for handling pdf2swf.exe crashes when run
from another application?  For windows development, it would be great to
have pdf2swf as a COM object or .Net object.

 

-John

 

John Ramsey

 


--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.410 / Virus Database: 268.16.12/628 - Release Date: 1/15/2007



-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.410 / Virus Database: 268.16.12/628 - Release Date: 1/15/2007
 
_______________________________________________
Swftools-common mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/swftools-common

Reply via email to