We are doing pdf to image conversion using Aspose.Pdf for Java.
For the pdf in the attachment, the background image is not rendered properly when we execute the following code or variants:
com.aspose.pdf.Document pdfDocument = new com.aspose.pdf.Document("test.pdf");
com.aspose.pdf.devices.Resolution resolution = new com.aspose.pdf.devices.Resolution(300);
JpegDevice jpegDevice = new JpegDevice(resolution, 100);
Page page = pdfDocument.getPages().get_Item(1);
java.io.OutputStream imageStream = new FileOutputStream("target/Converted_Page1.jpg");
jpegDevice.process(page, imageStream);
imageStream.close();
The incorrectly rendered image is also in the attachment.
How can we solve this problem so the image is properly rendered?