Hi,
Our bar-charts is not showing up, below is the screen shots:
Current result:
image.png (180.5 KB)
Expected result:
image.jpg (147.9 KB)
Below is our code:
try {
com.aspose.pdf.Document pdfDoc = new Document(pagePDFPath);
java.io.OutputStream imageStream = new FileOutputStream(imagePath);
com.aspose.pdf.devices.Resolution resolution = new Resolution(200);
JpegDevice jpegDevice = new JpegDevice(resolution, 60);
jpegDevice.process(pdfDoc.getPages().get_Item(1), imageStream);
imageStream.close();
pdfDoc.close();
gotImage.set(true);
} catch (Exception ex) {
ex.printStackTrace();
}
Library we are using:
import com.aspose.pdf.Document;
import com.aspose.pdf.devices.JpegDevice;
import com.aspose.pdf.devices.Resolution;
Please let me know if you need more info, thanks.