I don't know if it's too late to respond. but i think swftools crashes because the stdout and stderr is not redirect to file or null (i don't remember if this is a know java bug). I have many problems running script (with many echo) from java, but if I redirect output to null all it's ok..
2009/10/23 Andreas Haufler (scireum) <a...@scireum.de> > I think you mix up two problems: > > > > 1) Pdf2swf is call via cmd or C: works, but if called (same pdf) via > java it hangs: This can be solved by properly using the java API as I > already posted. > > 2) Pdf2swf crashes and windows reports this via a dialog. This is a > windows problem since the dialog is not shown by pdf2swf. For pdf2swf 0.9.0 > if havn’t seen any pdf out of > 1000 which causes this so it should happen > very rare. However you could used linux or unix or the like since a > segfault there is handled without any dialogs. Or you need to figure out > how to keep windows from showing this dialog. > > > > Are you using pdf2swf 0.9.0 or the latest snapshot? The latest snapshot > seems to be way more unstable than 0.9.0! > > > > Regards Andy > > > > freundliche Grüße > scireum - Ein Unternehmen der TTI GmbH > > i.A. Andreas Haufler > Projektleiter scireum > > > ------------------------------------------------------------------------------------------------------- > > TTI GmbH - TGU scireum, Friedrichstr. 8, 70736 Fellbach > > Tel: (0711) 69394632 - E-Mail: a...@scireum.de > Fax: (0711) 69394635 - Internet: http://www.scireum.de > > > > TTI GmbH - Zentrale, Nobelstr. 15, 70569 Stuttgart > > Geschäftsführer: Prof. Dr.-Ing. Bernd Bertsche, Elgar Rödler > > Amtsgericht Stuttgart, HRB 19455 > > > > *From:* swftools-common-bounces+aha=scireum...@nongnu.org [mailto: > swftools-common-bounces+aha <swftools-common-bounces%2Baha>=scireum.de@ > nongnu.org] *On Behalf Of *Farhad Seyedmehdi > *Sent:* Friday, October 23, 2009 10:43 AM > > *To:* swftools-common@nongnu.org > *Subject:* Re: [Swftools-common] PDF2SWF conversion hangs when called by > simple java program .. > > > > > > Hi > > I already report the problem at > http://lists.gnu.org/archive/html/swftools-common/2009-09/msg00096.html > still no solution. The workaround is to make scheduler with time-out then > process will be killed after time-out in this case you need to catch it and > execute it with poly2bitmap then you got swf it is a bit ugly swf but it > works keep in mind that you need to split your pdf to single pages and > execute it for all pages one by one. > > I am still waiting for solution. > > Regards > Farhad > ------------------------------ > > *From:* Andreas Haufler (scireum) <a...@scireum.de> > *To:* swftools-common@nongnu.org > *Sent:* Thu, October 22, 2009 8:32:12 AM > *Subject:* RE: [Swftools-common] PDF2SWF conversion hangs when called by > simple java program .. > > That's not true at all, we call pdf2swf from java without any problems (we > converted about 800 documents with > 60.000 Pages) without ANY problems. > All > you need to do is read stdout AND stderr of the called program. > > I have attached a samnple Java-Class which does that. > > Regards > Andy > > freundliche Grüße > scireum - Ein Unternehmen der TTI GmbH > > i.A. Andreas Haufler > Projektleiter scireum > > > ---------------------------------------------------------------------------- > --------------------------- > TTI GmbH - TGU scireum, Friedrichstr. 8, 70736 Fellbach > > Tel: (0711) 69394632 - E-Mail: a...@scireum.de > Fax: (0711) 69394635 - Internet: http://www.scireum.de > > TTI GmbH - Zentrale, Nobelstr. 15, 70569 Stuttgart > Geschäftsführer: Prof. Dr.-Ing. Bernd Bertsche, Elgar Rödler > Amtsgericht Stuttgart, HRB 19455 > > -----Original Message----- > From: swftools-common-bounces+aha=scireum...@nongnu.org > [mailto:swftools-common-bounces+aha <swftools-common-bounces%2Baha>= > scireum...@nongnu.org] On Behalf Of > Matthias Kramm > Sent: Wednesday, October 21, 2009 6:21 PM > To: swftools-common@nongnu.org > Subject: Re: [Swftools-common] PDF2SWF conversion hangs when called by > simple java program .. > > On Tue, Oct 20, 2009 at 12:20:39PM +0530, Aparna More > <aparnamo...@gmail.com> wrote: > > Then we have written a simple java program which will call this > executable > > and we have abserved that it hangs after processing 300 pages. > > Try running pdf2swf with the -vvvv option and determine the > last log statement before it hangs. > > These "calling from Java" issues have come up before, but nobody > seems to have found a definite solution. > > Matthias > > > >