Convert PDF to PNG Issues
Posted: 2014-01-21T10:33:45-07:00
Hi All,
ImageMgaick Version: 6.2.8
OS: x86_64-red hat linux-gnu
I am using a sample java api which is used to convert image from PDF to PNG Format,my code is working fine in Dev and Test Environments which is a simple server and conversion happened properly for all the images(PDF ->PNG) respectively , but the issue i am facing is on Stage Environment consist of 2 servers and image magick-6.2.8 has been installed on 2 servers and code is also executing on 2 servers,but the problem i am facing is the images are not coming with full clarity (i.e half of the images are coming) and for some of the pdf's i am getting an exception from the code "Malformed Input Exception".
Please, it would be helpful if anyone provide any suggestions or any ideas on this.
Below is my sample java api code.
IMOperation img = new IMOperation();
img.addImage();
img.addImage();
ConvertCmd convert = new ConvertCmd();
convert.run(img, new Object[] { inputImagePath.getAbsolutePath(), outputImagePath.getAbsolutePath() });
Regards,
Karthik
ImageMgaick Version: 6.2.8
OS: x86_64-red hat linux-gnu
I am using a sample java api which is used to convert image from PDF to PNG Format,my code is working fine in Dev and Test Environments which is a simple server and conversion happened properly for all the images(PDF ->PNG) respectively , but the issue i am facing is on Stage Environment consist of 2 servers and image magick-6.2.8 has been installed on 2 servers and code is also executing on 2 servers,but the problem i am facing is the images are not coming with full clarity (i.e half of the images are coming) and for some of the pdf's i am getting an exception from the code "Malformed Input Exception".
Please, it would be helpful if anyone provide any suggestions or any ideas on this.
Below is my sample java api code.
IMOperation img = new IMOperation();
img.addImage();
img.addImage();
ConvertCmd convert = new ConvertCmd();
convert.run(img, new Object[] { inputImagePath.getAbsolutePath(), outputImagePath.getAbsolutePath() });
Regards,
Karthik