please help to solve this issue.
this pdf is
1.pdf (364.8 KB)
samle code:
List result = new ArrayList<>();
String outPath = “/Users/jimmy/test/picture”;
// Create Resolution object
try (com.aspose.pdf.Document document = new com.aspose.pdf.Document(filePath)) {
JpegDevice jpegDevice = new JpegDevice(50);
int pageCount = document.getPages().size();
if (pageCount > 0) {
for (int i = 1; i <= pageCount; i++) {
String fileName = outPath + i + “.jpg”;
try (java.io.OutputStream outputBinImageFile = new java.io.FileOutputStream(fileName)) {
jpegDevice.process(document.getPages().get_Item(i), outputBinImageFile);
result.add(fileName);
}
}
}
}
1.pdf (365 KB)