Skip to content

Commit

Permalink
修正生成文件路径
Browse files Browse the repository at this point in the history
  • Loading branch information
jmjlbmn committed Sep 5, 2018
1 parent 18d9c7b commit 588ca74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/vip/maning/pdf2ppt/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ private void doTurn(File pdfFile) {
XSLFPictureShape shape = ppt.createSlide().createPicture(ppt.addPicture(new ByteArrayInputStream(bs.toByteArray()), PictureData.PictureType.PNG));
shape.setAnchor(new java.awt.Rectangle(0, 0, 720, 540));
}
ppt.write(new FileOutputStream(pdfFile.getParent() + pdfFile.getName() + " 转换的PPT文件.pptx"));
ppt.write(new FileOutputStream(pdfFile.getParent() + File.separatorChar + pdfFile.getName() + "转换的PPT文件.pptx"));
Platform.runLater(this::turnStop);
} catch (Exception e) {
e.printStackTrace();
Expand Down

0 comments on commit 588ca74

Please sign in to comment.