commit
e8757753ac
@ -0,0 +1,21 @@
|
|||||||
|
target/
|
||||||
|
pom.xml.tag
|
||||||
|
pom.xml.releaseBackup
|
||||||
|
pom.xml.versionsBackup
|
||||||
|
pom.xml.next
|
||||||
|
release.properties
|
||||||
|
/.idea
|
||||||
|
*.iml
|
||||||
|
/.settings
|
||||||
|
/bin
|
||||||
|
/gen
|
||||||
|
/build
|
||||||
|
/gradle
|
||||||
|
/classes
|
||||||
|
.classpath
|
||||||
|
.project
|
||||||
|
*.gradle
|
||||||
|
gradlew
|
||||||
|
local.properties
|
||||||
|
node_modules/
|
||||||
|
data/
|
@ -0,0 +1,9 @@
|
|||||||
|
package xyz.wbsite.pdf2doc;
|
||||||
|
|
||||||
|
public class Demo {
|
||||||
|
public static void main(String[] args) {
|
||||||
|
String res = new PdfToWord().pdftoword("D:\\材料\\8、相关标准\\GB6944-2012 危险货物分类和品名编号.pdf");
|
||||||
|
System.out.println(res);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,22 @@
|
|||||||
|
package xyz.wbsite.pdf2doc;
|
||||||
|
|
||||||
|
import java.io.File;
|
||||||
|
|
||||||
|
public class FileDeleteTest {
|
||||||
|
//删除文件和目录
|
||||||
|
public void clearFiles(String workspaceRootPath){
|
||||||
|
File file = new File(workspaceRootPath);
|
||||||
|
if(file.exists()){
|
||||||
|
deleteFile(file);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public void deleteFile(File file){
|
||||||
|
if(file.isDirectory()){
|
||||||
|
File[] files = file.listFiles();
|
||||||
|
for(int i=0; i<files.length; i++){
|
||||||
|
deleteFile(files[i]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
file.delete();
|
||||||
|
}
|
||||||
|
}
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in new issue