swftools-common
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Swftools-common] Re: Problem when converting PDF - SWF


From: eusabia roseline
Subject: Re: [Swftools-common] Re: Problem when converting PDF - SWF
Date: Tue, 20 May 2008 15:50:56 +0530

Hi,

I tried with the one you mentioned and it works well.
I have one more question. Till how many pages can pdf2swf convert?
I tried with a 1000 pages document command line, it started the conversion but after 900 pages it said that it cannot convert.

Thanks,
Eusabia

On Tue, May 6, 2008 at 3:32 PM, eusabia roseline <address@hidden> wrote:
Ok i'll try it out and mail you.

Thanks,
Eusabia


On Tue, May 6, 2008 at 3:27 PM, Matthias Kramm <address@hidden> wrote:
On Tue, May 06, 2008 at 12:17:25PM +0530, eusabia roseline <address@hidden> wrote:
>             in = new BufferedReader(new
> InputStreamReader(p.getErrorStream()));

Please read out p.getInputStream(), too, and do the waitFor() *after*
reading out the streams.

Something like this:

   BufferedReader stdInput = new BufferedReader(new InputStreamReader(p.getInputStream()));
   BufferedReader stdError = new BufferedReader(new InputStreamReader(p.getErrorStream()));
   while (true) {
           String s1 = stdInput.readLine();
           String s2 = stdError.readLine();
           if(s1 != null) {
               System.out.println(s1);
           } else if(s2 != null) {
               System.out.println(s2);
           } else {
               break;
           }
   }
   p.waitFor();

Greetings

Matthias









reply via email to

[Prev in Thread] Current Thread [Next in Thread]