|
From: | Abhishek Bagga |
Subject: | RE: [Swftools-common] Unable to run the Pdf2Swf through a web service on windows 2003 |
Date: | Tue, 16 Jan 2007 11:22:55 +0530 |
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, From: John H. Ramsey
[mailto:address@hidden 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 -- -- |
[Prev in Thread] | Current Thread | [Next in Thread] |