解决pdf 不分盘问题

master
zhanghai 2 years ago
parent 5bebe9b6ed
commit 207c8cfba9

@ -1,8 +1,8 @@
file.mode=图片
file.read.url=C:\jiahsi-saomiao\缩微\ddd_0001\
a3.length=30
plate.size=2800
a3.width=30
a3.length=300
plate.size=200
a3.width=300
file.save.url=C:\jiahsi-saomiao\缩微\分盘结果\档案图\
zong.name.prefix=南方医院
Split.mode=copy/cut

@ -126,7 +126,7 @@ public class FenpanService {
piece.put(documentList);
//删除对应的temp 文件
file.delete();
FileUtils.delete(file);
} else if (piece.getFileTypeEnum() == FileTypeEnum.DOCX) {
//从word 直接提取图片
//提取图片为document ,然后用于后面判断
@ -149,7 +149,7 @@ public class FenpanService {
piece.put(documentList);
//删除对应的temp 文件
file.delete();
FileUtils.delete(file);
} else if (piece.getFileTypeEnum() == FileTypeEnum.PDF) {
// 从pdf 提取图片,
//提取图片为document ,然后用于后面判断
@ -171,7 +171,7 @@ public class FenpanService {
piece.put(documentList);
//删除对应的temp 文件
file.delete();
FileUtils.delete(file);
} else {
//是图片,直接从图片提取
List<Document> documentList = new ArrayList<>();
@ -302,12 +302,13 @@ public class FenpanService {
|| o.getName().endsWith(".tiff")) {
Pieces pieces = new Pieces(FileTypeEnum.JPG, o.getParentFile().getAbsolutePath(), o.getParentFile().getName());
allDirectory.add(pieces);
break;
} else {
System.out.println("请删除无效的文件:" + o.getAbsolutePath());
}
break;
}
}
}

@ -49,7 +49,7 @@ public class MyApplication {
}
private static void createAndShowGUI() {
JFrame frame = new JFrame("缩微工具");
JFrame frame = new JFrame("分盘索引工具");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setSize(600, 400);
@ -70,7 +70,7 @@ public class MyApplication {
paramPanel.add(zongPreJtf, gbc);
JPanel sizePanel = new JPanel(new FlowLayout(FlowLayout.LEFT));
sizePanel.add(new JLabel("A3大小尺寸(厘米) 长:"));
sizePanel.add(new JLabel("A3大小尺寸(英寸) 长:"));
JTextField a3LongJtf = new JTextField(5);
sizePanel.add(a3LongJtf);
sizePanel.add(new JLabel("宽:"));

@ -39,7 +39,7 @@ public class SuoyinService {
public static void main(String[] args) throws IOException {
Config.loadConfig();
String path = "C:\\Users\\zhanghai\\Desktop\\桌面\\test\\aa\\南方医院zong";
String path = "C:\\Users\\zhanghai\\Desktop\\桌面\\test\\ppp\\ppp";
new SuoyinService().index(path);
}

Loading…
Cancel
Save