summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src/main/java/at/asit/pdfover
diff options
context:
space:
mode:
authorAndreas Abraham <andreas.abraham@egiz.gv.at>2020-02-18 13:50:59 +0100
committerAndreas Abraham <andreas.abraham@egiz.gv.at>2020-02-18 13:50:59 +0100
commitfa361ce02d1252486cce978e8e8a7763794b2155 (patch)
tree3b28f161a5d5c0c69007667529103a07fb19bb23 /pdf-over-gui/src/main/java/at/asit/pdfover
parent729516aefe7b14b03176fa8df674e17fae8945d3 (diff)
downloadpdf-over-fa361ce02d1252486cce978e8e8a7763794b2155.tar.gz
pdf-over-fa361ce02d1252486cce978e8e8a7763794b2155.tar.bz2
pdf-over-fa361ce02d1252486cce978e8e8a7763794b2155.zip
comments added
Diffstat (limited to 'pdf-over-gui/src/main/java/at/asit/pdfover')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/OpenState.java13
1 files changed, 3 insertions, 10 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/OpenState.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/OpenState.java
index b9aa961d..147e2399 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/OpenState.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/OpenState.java
@@ -111,13 +111,11 @@ public class OpenState extends State {
// scan for signature placeholders
// - see if we want to scan for placeholders in the settings
if (getStateMachine().getConfigProvider().getEnablePlaceholderUsage()) {
- // getStateMachine().getConfigProvider().getUseMarker() ||
- // getStateMachine().getConfigProvider().getUseSignatureFields()) {
try {
-
// - scan for placeholders
PDDocument pddocument = PDDocument.load(getStateMachine().getStatus().getDocument());
+ //first check the signature fields placeholder
if (getStateMachine().getConfigProvider().getUseSignatureFields()) {
List<String> fields = SignatureFieldsExtractor.findEmptySignatureFields(pddocument);
@@ -149,14 +147,13 @@ public class OpenState extends State {
}
getStateMachine().getStatus().setSearchForPlaceholderSignature(false);
-
}
} else {
getStateMachine().getStatus().setSearchForPlaceholderSignature(false);
}
}
-
+ // second check if qr code placeholder search is enabled
} else if (getStateMachine().getConfigProvider().getUseMarker()) {
SignaturePlaceholderData signaturePlaceholderData = SignaturePlaceholderExtractor
@@ -205,14 +202,10 @@ public class OpenState extends State {
// proceed with the usual process.
}
}
-
+
this.setNextState(new PositioningState(getStateMachine()));
}
-
-
-
-
/**
* The selected placeholder is added to the configuration file
* @param selection