We have purchased the Aspose total license in order to create thumbnails for PDFs. That however does not work well.
I have reproduced the issue following the simple steps of the documentation.
public static void main(String args)
// Open document
Document pdfDocument = new Document("./app/admin/misc/input.pdf");
// Create stream object to save the output image
java.io.OutputStream imageStream = new java.io.FileOutputStream(“Converted_Image.jpg”);
// Create JPEG device with specified attributes
// Quality [0-100], 100 is Maximum
// Create Resolution object
Resolution resolution = new Resolution(300);
// Create JpegDevice object where second argument indicates the quality of resultant image
JpegDevice jpegDevice = new JpegDevice(resolution, 100);
// Convert a particular page and save the image to stream
// Close the stream
catch (IOException e)
I attached the pdf and the resulting image. As you can see the colors are wrong.
I’m using the latest release aspose-pdf-9.5.2-jdk16.jar
for using our API’s.<o:p></o:p>
I have tested the scenario and I am able to reproduce the same problem. For the sake of correction, I have logged it in our issue tracking system as PDFNEWJAVA-34587. We will investigate this issue in details and will keep you updated on the status of a correction.
We apologize for your inconvenience.