I am converting pdf file in postscript file using acroread command.
The conversion is successfull but it is too slow and almost uses 100% of CPU,
because of this my application hangs for some time and thus no user is able to do
anything.
The code i am using is:-
processBuilder = new ProcessBuilder("bash","-c","acroread -toPostScript -size "+width+"x"+height+" -optimizeForSpeed sample.pdf");
pp = processBuilder.start();
pp.waitFor();
Is there a way to speed up the process and make it to use less percentage of CPU.
Please help!!!!