Commit 8bb201c2 authored by 赵啸非's avatar 赵啸非

修改图片转换

parent a2c89b7c
Pipeline #2875 failed with stages
......@@ -253,9 +253,7 @@ public class WordUtil {
public static BufferedImage moreToOne(List<BufferedImage> imgs) {
//传入图片少于1张直接返回
int len = imgs.size();
if (len < 1) {
return null;
}
//使用一个数组将图片装起来
BufferedImage[] bufferedImages = new BufferedImage[len];
int[][] imageArrays = new int[len][];
......@@ -311,7 +309,7 @@ public class WordUtil {
}
public static void main(String[] args) {
String docPath = "E:\\pic\\doc\\new.docx";
String docPath = "E:\\pic\\doc\\3.docx";
String jpgPath = "E:\\pic\\doc\\3.jpg";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment