Page 1 of 1

problem regarding convert

Posted: 2007-03-27T21:35:56-07:00
by siemen450
Hi,

Runtime runtime = Runtime.getRuntime();
Process process = runtime.exec("convert -density 150 /dir1/dir2/1.pdf -resize 90% -trim /dir3/dir/4.jpg");
int exitVal = process.waitFor();

i m using this code to convert. its not saying any error or its not producing result also.

Could u plz help me? how can i do this?

Thank You.

Regds.
siemen

Re: problem regarding convert

Posted: 2007-04-04T12:55:15-07:00
by teetanne
Dear siemen,

first try to call your stmt (convert -density 150 /dir1/dir2/1.pdf -resize 90% -trim /dir3/dir/4.jpg) and review the result. Most possible reason would be a missing path. A other reason could be the "process.waitFor();" stmt. I am not sure but I think there is no return code to wait for.

More information about your OS and IM would be nice.

greetings TeeTanne