aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-cli/src/main/java/at/gv/egiz/pdfas
diff options
context:
space:
mode:
Diffstat (limited to 'pdf-as-cli/src/main/java/at/gv/egiz/pdfas')
-rw-r--r--pdf-as-cli/src/main/java/at/gv/egiz/pdfas/cli/Main.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/pdf-as-cli/src/main/java/at/gv/egiz/pdfas/cli/Main.java b/pdf-as-cli/src/main/java/at/gv/egiz/pdfas/cli/Main.java
index 7d9749c2..62efe965 100644
--- a/pdf-as-cli/src/main/java/at/gv/egiz/pdfas/cli/Main.java
+++ b/pdf-as-cli/src/main/java/at/gv/egiz/pdfas/cli/Main.java
@@ -470,7 +470,7 @@ public class Main {
} else {
if (confOutputFile.endsWith(".pdf")) {
outputFile = confOutputFile.subSequence(0,
- inputFile.length() - ".pdf".length())
+ confOutputFile.length() - ".pdf".length())
+ "_" + idx + ".pdf";
} else {
outputFile = confOutputFile + "_" + idx + ".pdf";