Skip to content

Commit

Permalink
Fixed filepath
Browse files Browse the repository at this point in the history
  • Loading branch information
Georgy Litvinov committed Oct 16, 2016
1 parent 3e88dd4 commit 12f3f3f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/java/ru/ras/iph/impose/ImposeonA3.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ public static void main(String[] args) throws IOException, DocumentException {
System.exit(1);
}
FileInputStream is = new FileInputStream(inputFile);
File outputFile = new File( inputFile.getParent() + File.separator + "A3_" + inputFile.getName());
String parentFolder = "";
if (inputFile.getParent() != null){
parentFolder = inputFile.getParent() + File.separator;
}
File outputFile = new File( parentFolder + "A3_" + inputFile.getName());
FileOutputStream os = new FileOutputStream(outputFile);

PdfReader reader = new PdfReader(is);
Expand Down

0 comments on commit 12f3f3f

Please sign in to comment.