The code is as follows; this is an asynchronous method annotated with the @Async annotation.
// interface
@Async("ioTaskExecutor")
CompletableFuture<List<BufferedImage>> getPdfImages(String pdfPath);
//impl
…...extracting images from PDF in multithreading: Not supported image type...pdfPath) { List<BufferedImage> images = AsposePdfUtils.getImages(pdfPath);...