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
problem regarding convert
Re: problem regarding convert
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
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