所需数据
首先需要将所有需要合并的文件转换成字节流也就是byte[] 然后把,每个数据都放到一个list
文件路径转换成byte[]
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354final List<String> collect = //你的文件路径集合logger.info("开始转换pdf");int totalUrls = collect.size();int batchSize = 20; // 每批文件数量int totalBatches = (int) Math.ceil((double) totalUrls / batchSize); // 共多少批任务if (totalBatches <=0 ) return new byte[0];ExecutorService executorService = //你的自定义线程池List<CompletableFuture< ...