aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-cli
diff options
context:
space:
mode:
Diffstat (limited to 'pdf-as-cli')
-rw-r--r--pdf-as-cli/build.gradle3
-rw-r--r--pdf-as-cli/src/main/java/at/gv/egiz/pdfas/cli/Main.java26
-rw-r--r--pdf-as-cli/src/test/java/at/gv/egiz/pdfas/cli/test/SignaturBlockParameterTest.java222
-rw-r--r--pdf-as-cli/src/test/resources/pdfas-config/cfg/advancedconfig.properties107
-rw-r--r--pdf-as-cli/src/test/resources/pdfas-config/cfg/config.properties108
-rw-r--r--pdf-as-cli/src/test/resources/pdfas-config/cfg/log4j.properties23
-rw-r--r--pdf-as-cli/src/test/resources/pdfas-config/cfg/logback.xml16
-rw-r--r--pdf-as-cli/src/test/resources/pdfas-config/cfg/profiles.zipbin0 -> 21146 bytes
-rw-r--r--pdf-as-cli/src/test/resources/pdfas-config/cfg/profiles/BASE_LOGO.properties28
-rw-r--r--pdf-as-cli/src/test/resources/pdfas-config/cfg/profiles/BASE_NORMAL.properties145
-rw-r--r--pdf-as-cli/src/test/resources/pdfas-config/cfg/profiles/BASE_NORMAL_NOTE.properties10
-rw-r--r--pdf-as-cli/src/test/resources/pdfas-config/cfg/profiles/SIGNATURBLOCK_DE.properties8
-rw-r--r--pdf-as-cli/src/test/resources/pdfas-config/cfg/profiles/SIGNATURBLOCK_DE_NOTE.properties9
-rw-r--r--pdf-as-cli/src/test/resources/pdfas-config/cfg/profiles/SIGNATURBLOCK_DE_NOTE_DYNAMIC.properties16
-rw-r--r--pdf-as-cli/src/test/resources/pdfas-config/fonts/DejaVuSansCondensed-Bold.ttfbin0 -> 522704 bytes
-rw-r--r--pdf-as-cli/src/test/resources/pdfas-config/fonts/DejaVuSansCondensed.ttfbin0 -> 533412 bytes
-rw-r--r--pdf-as-cli/src/test/resources/pdfas-config/fonts/DejaVuSansMono.ttfbin0 -> 317336 bytes
-rw-r--r--pdf-as-cli/src/test/resources/pdfas-config/fonts/arial.ttfbin0 -> 296712 bytes
-rw-r--r--pdf-as-cli/src/test/resources/pdfas-config/images/Baik_Archiv.gifbin0 -> 19334 bytes
-rw-r--r--pdf-as-cli/src/test/resources/pdfas-config/images/Baik_Urkunde.gifbin0 -> 13914 bytes
-rw-r--r--pdf-as-cli/src/test/resources/pdfas-config/images/amtsignatur-logo_demo.pngbin0 -> 60943 bytes
-rw-r--r--pdf-as-cli/src/test/resources/pdfas-config/images/justizsignatur_neu.gifbin0 -> 14049 bytes
-rw-r--r--pdf-as-cli/src/test/resources/pdfas-config/images/seal-logo_de.pngbin0 -> 24951 bytes
-rw-r--r--pdf-as-cli/src/test/resources/pdfas-config/images/seal-logo_en.pngbin0 -> 23216 bytes
-rw-r--r--pdf-as-cli/src/test/resources/pdfas-config/images/signatur-logo_de.pngbin0 -> 22372 bytes
-rw-r--r--pdf-as-cli/src/test/resources/pdfas-config/images/signatur-logo_de_highest_resolution.pngbin0 -> 37120 bytes
-rw-r--r--pdf-as-cli/src/test/resources/pdfas-config/images/signatur-logo_en.pngbin0 -> 22233 bytes
-rw-r--r--pdf-as-cli/src/test/resources/pdfas-config/images/signatur-logo_en_highest_resolution.pngbin0 -> 36360 bytes
-rw-r--r--pdf-as-cli/src/test/resources/pdfas-config/licenses/adobe/AFM_License.html1
-rw-r--r--pdf-as-cli/src/test/resources/pdfas-config/licenses/ant/LICENSE203
-rw-r--r--pdf-as-cli/src/test/resources/pdfas-config/licenses/ant/LICENSE.dom71
-rw-r--r--pdf-as-cli/src/test/resources/pdfas-config/licenses/ant/LICENSE.sax20
-rw-r--r--pdf-as-cli/src/test/resources/pdfas-config/licenses/ant/LICENSE.xerces56
-rw-r--r--pdf-as-cli/src/test/resources/pdfas-config/licenses/apache/LICENSE202
-rw-r--r--pdf-as-cli/src/test/resources/pdfas-config/licenses/checkstyle/LICENSE504
-rw-r--r--pdf-as-cli/src/test/resources/pdfas-config/licenses/checkstyle/LICENSE.apache60
-rw-r--r--pdf-as-cli/src/test/resources/pdfas-config/licenses/dejavu-font/LICENSE99
-rw-r--r--pdf-as-cli/src/test/resources/pdfas-config/licenses/fonts/BitStream.txt17
-rw-r--r--pdf-as-cli/src/test/resources/pdfas-config/licenses/ikvm/LICENSE34
-rw-r--r--pdf-as-cli/src/test/resources/pdfas-config/licenses/junit/cpl-v10.html125
-rw-r--r--pdf-as-cli/src/test/resources/pdfas-config/licenses/log4j/LICENSE.txt48
-rw-r--r--pdf-as-cli/src/test/resources/pdfas-config/licenses/lucene/LICENSE.txt15
-rw-r--r--pdf-as-cli/src/test/resources/pdfas-config/licenses/pdfbox/LICENSE25
-rw-r--r--pdf-as-cli/src/test/resources/pdfas-config/licenses/sun-jaicmm/JAI-LICENSE283
-rw-r--r--pdf-as-cli/src/test/resources/pdfas-config/licenses/sun-jaicmm/LICENSE186
45 files changed, 2669 insertions, 1 deletions
diff --git a/pdf-as-cli/build.gradle b/pdf-as-cli/build.gradle
index 1c14306a..136c9cbc 100644
--- a/pdf-as-cli/build.gradle
+++ b/pdf-as-cli/build.gradle
@@ -37,7 +37,8 @@ dependencies {
implementation project (':signature-standards:sigs-pades')
implementation project (':pdf-as-moa')
//pdfBox1Implementation project (':pdf-as-pdfbox')
- pdfBox2Implementation project (':pdf-as-pdfbox-2')
+ //pdfBox2Implementation project (':pdf-as-pdfbox-2')
+ implementation project (':pdf-as-pdfbox-2')
implementation group: 'commons-collections', name: 'commons-collections', version: '3.2.2'
implementation group: 'commons-cli', name: 'commons-cli', version: '1.2'
implementation group: 'javax.activation', name: 'activation', version: '1.1.1'
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 c2d35c40..86769c49 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
@@ -26,8 +26,10 @@ package at.gv.egiz.pdfas.cli;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
+import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
+import java.util.Map;
import java.util.Map.Entry;
import java.util.UUID;
@@ -83,6 +85,9 @@ public class Main {
public static final String CLI_ARG_CONF_SHORT = "conf";
public static final String CLI_ARG_CONF = "configuration";
+ public static final String CLI_ARG_SIGNATURE_BLOCK_PARAM_SHORT = "sbp";
+ public static final String CLI_ARG_SIGNATURE_BLOCK_PARAM = "signature_block_parameter";
+
public static final String CLI_ARG_DEPLOY_SHORT = "d";
public static final String CLI_ARG_DEPLOY = "deploy";
@@ -197,6 +202,10 @@ public class Main {
true, "The output file");
cliOptions.addOption(outputOption);
+ Option signatureBlockParameters = new Option(CLI_ARG_SIGNATURE_BLOCK_PARAM_SHORT, CLI_ARG_SIGNATURE_BLOCK_PARAM,
+ true, "Parameters or signature block");
+ cliOptions.addOption(signatureBlockParameters);
+
return cliOptions;
}
@@ -432,6 +441,23 @@ public class Main {
System.out.println("Starting signature for " + pdfFile);
System.out.println("Selected signature Profile " + profilID);
+ // get console parameters related to signature block
+ String[] signatureBlockParameters = null;
+ if (cli.hasOption(CLI_ARG_SIGNATURE_BLOCK_PARAM_SHORT)) {
+ signatureBlockParameters = cli.getOptionValues(CLI_ARG_SIGNATURE_BLOCK_PARAM_SHORT);
+ }
+ Map<String, String> signatureBlockParametersMap = new HashMap<>();
+ if(signatureBlockParameters != null && signatureBlockParameters.length > 0) {
+ for(String s : signatureBlockParameters) {
+ if(!s.contains("=")) {
+ throw new Exception("Invalid parameter: "+s);
+ }
+ String[] values = s.split("=", 2);
+ signatureBlockParametersMap.put(values[0], values[1]);
+ }
+ }
+ signParameter.setDynamicSignatureBlockArguments(signatureBlockParametersMap);
+
SignResult result = null;
try {
result = pdfAs.sign(signParameter);
diff --git a/pdf-as-cli/src/test/java/at/gv/egiz/pdfas/cli/test/SignaturBlockParameterTest.java b/pdf-as-cli/src/test/java/at/gv/egiz/pdfas/cli/test/SignaturBlockParameterTest.java
new file mode 100644
index 00000000..7b29b535
--- /dev/null
+++ b/pdf-as-cli/src/test/java/at/gv/egiz/pdfas/cli/test/SignaturBlockParameterTest.java
@@ -0,0 +1,222 @@
+/*******************************************************************************
+ * <copyright> Copyright 2014 by E-Government Innovation Center EGIZ, Graz, Austria </copyright>
+ * PDF-AS has been contracted by the E-Government Innovation Center EGIZ, a
+ * joint initiative of the Federal Chancellery Austria and Graz University of
+ * Technology.
+ *
+ * Licensed under the EUPL, Version 1.1 or - as soon they will be approved by
+ * the European Commission - subsequent versions of the EUPL (the "Licence");
+ * You may not use this work except in compliance with the Licence.
+ * You may obtain a copy of the Licence at:
+ * http://www.osor.eu/eupl/
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the Licence is distributed on an "AS IS" basis,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the Licence for the specific language governing permissions and
+ * limitations under the Licence.
+ *
+ * This product combines work with different licenses. See the "NOTICE" text
+ * file for details on the various modules and licenses.
+ * The "NOTICE" text file is part of the distribution. Any derivative works
+ * that you distribute must include a readable copy of the "NOTICE" text file.
+ ******************************************************************************/
+package at.gv.egiz.pdfas.cli.test;
+
+import at.gv.egiz.pdfas.common.exceptions.PDFASError;
+import at.gv.egiz.pdfas.common.exceptions.PdfAsException;
+import at.gv.egiz.pdfas.lib.api.ByteArrayDataSource;
+import at.gv.egiz.pdfas.lib.api.Configuration;
+import at.gv.egiz.pdfas.lib.api.PdfAs;
+import at.gv.egiz.pdfas.lib.api.PdfAsFactory;
+import at.gv.egiz.pdfas.lib.api.sign.IPlainSigner;
+import at.gv.egiz.pdfas.lib.api.sign.SignParameter;
+import at.gv.egiz.pdfas.lib.api.sign.SignResult;
+import at.gv.egiz.pdfas.sigs.pades.PAdESSignerKeystore;
+import org.apache.commons.io.IOUtils;
+import org.apache.pdfbox.pdmodel.PDDocument;
+import org.apache.pdfbox.pdmodel.interactive.digitalsignature.PDSignature;
+import org.apache.pdfbox.pdmodel.interactive.form.PDAcroForm;
+import org.apache.pdfbox.pdmodel.interactive.form.PDField;
+import org.apache.pdfbox.pdmodel.interactive.form.PDSignatureField;
+import org.junit.Assert;
+import org.junit.Test;
+
+import javax.activation.DataSource;
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.FileNotFoundException;
+import java.io.FileOutputStream;
+import java.io.IOException;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+public class SignaturBlockParameterTest {
+
+ public static final String KS_ALIAS = "ecc_test";
+ public static final String KS_TYPE = "PKCS12";
+ public static final String KS_PASS = "123456";
+ public static final String KS_KEY_PASS = "123456";
+
+ public String getPath(String resourceName) {
+ ClassLoader classLoader = this.getClass().getClassLoader();
+ File file = new File(classLoader.getResource(resourceName).getFile());
+ String absolutePath = file.getAbsolutePath();
+
+ System.out.println(absolutePath);
+ return absolutePath;
+ }
+
+ @Test(expected = PdfAsException.class)
+ public void invalid() throws IOException, PdfAsException, PDFASError {
+
+ PdfAs pdfas = PdfAsFactory.createPdfAs(new File(getPath("pdfas-config")));
+ Configuration config = pdfas.getConfiguration();
+
+ byte[] input = IOUtils.toByteArray(new FileInputStream(getPath("simple_rotated_0.pdf")));
+
+ IPlainSigner signer = new PAdESSignerKeystore(getPath("test.p12"), KS_ALIAS, KS_PASS, KS_KEY_PASS, KS_TYPE);
+
+ String profile = "SIGNATURBLOCK_DE_NOTE_DYNAMIC";
+ System.out.println("Testing " + profile);
+
+ DataSource source = new ByteArrayDataSource(input);
+ String outFile = getPath("out") + "/" + profile + ".pdf";
+ FileOutputStream fos = new FileOutputStream(outFile);
+ SignParameter signParameter = PdfAsFactory.createSignParameter(
+ config, source, fos);
+
+ Map<String, String> map = new HashMap<>();
+ map.put("subject", "TEST123");
+ map.put("WAY_TOOOOOOOOOOOOOOOOOOOOO_LONG_KEY", "bar");
+ signParameter.setDynamicSignatureBlockArguments(map);
+// signParameter.setPlainSigner(signer);
+// signParameter.setSignatureProfileId(profile);
+//
+// SignResult result = pdfas.sign(signParameter);
+
+ fos.close();
+
+ }
+
+ @Test
+ public void test() throws IOException, PDFASError, PdfAsException {
+
+ PdfAs pdfas = PdfAsFactory.createPdfAs(new File(getPath("pdfas-config")));
+ Configuration config = pdfas.getConfiguration();
+
+
+ byte[] input = IOUtils.toByteArray(new FileInputStream(getPath("simple_rotated_0.pdf")));
+
+ IPlainSigner signer = new PAdESSignerKeystore(getPath("test.p12"), KS_ALIAS, KS_PASS, KS_KEY_PASS, KS_TYPE);
+
+ String profile = "SIGNATURBLOCK_DE_NOTE_DYNAMIC";
+ System.out.println("Testing " + profile);
+
+ DataSource source = new ByteArrayDataSource(input);
+ String outFile = getPath("out") + "/" + profile + ".pdf";
+ FileOutputStream fos = new FileOutputStream(outFile);
+ SignParameter signParameter = PdfAsFactory.createSignParameter(
+ config, source, fos);
+
+ Map<String, String> map = new HashMap<>();
+ map.put("subject", "TEST123");
+ map.put("foo", "bar");
+ signParameter.setDynamicSignatureBlockArguments(map);
+ signParameter.setPlainSigner(signer);
+ signParameter.setSignatureProfileId(profile);
+
+ SignResult result = pdfas.sign(signParameter);
+
+ fos.close();
+ String name = getName(outFile, "PDF-AS Signatur1");
+ Assert.assertEquals("TEST123 test bar 123 c TEST123 Andreas Fitzek ECC", name);
+
+
+ outFile = getPath("out") + "/" + profile + "-1.pdf";
+ fos = new FileOutputStream(outFile);
+ signParameter = PdfAsFactory.createSignParameter(
+ config, source, fos);
+
+ map = new HashMap<>();
+ map.put("subject", "TEST123");
+ signParameter.setDynamicSignatureBlockArguments(map);
+ signParameter.setPlainSigner(signer);
+ signParameter.setSignatureProfileId(profile);
+
+ result = pdfas.sign(signParameter);
+
+ fos.close();
+ name = getName(outFile, "PDF-AS Signatur1");
+ Assert.assertEquals("TEST123 test null 123 c TEST123 Andreas Fitzek ECC", name);
+
+ outFile = getPath("out") + "/" + profile + "-2.pdf";
+ fos = new FileOutputStream(outFile);
+ signParameter = PdfAsFactory.createSignParameter(
+ config, source, fos);
+ map = new HashMap<>();
+ map.put("foo", "bar");
+ signParameter.setDynamicSignatureBlockArguments(map);
+ signParameter.setPlainSigner(signer);
+ signParameter.setSignatureProfileId(profile);
+ result = pdfas.sign(signParameter);
+ fos.close();
+ name = getName(outFile, "PDF-AS Signatur1");
+ Assert.assertEquals("null test bar 123 c null Andreas Fitzek ECC", name);
+
+ outFile = getPath("out") + "/" + profile + "-3.pdf";
+ fos = new FileOutputStream(outFile);
+ signParameter = PdfAsFactory.createSignParameter(
+ config, source, fos);
+
+ signParameter.setPlainSigner(signer);
+ signParameter.setSignatureProfileId(profile);
+ result = pdfas.sign(signParameter);
+ fos.close();
+ name = getName(outFile, "PDF-AS Signatur1");
+ Assert.assertEquals("null test null 123 c null Andreas Fitzek ECC", name);
+// Assert.assertEquals("{sbp.subject} test {sbp.foo} 123 {subject.T != null ? (subject.T + \" a \"+sbp.subject) : " +
+// "\"c \"+sbp.subject+\" \"}Andreas Fitzek ECC", name);
+//TODO was ist gewünscht?
+
+
+ outFile = getPath("out") + "/" + profile + "-4.pdf";
+ fos = new FileOutputStream(outFile);
+ signParameter = PdfAsFactory.createSignParameter(
+ config, source, fos);
+ map = new HashMap<>();
+ signParameter.setDynamicSignatureBlockArguments(map);
+ signParameter.setPlainSigner(signer);
+ signParameter.setSignatureProfileId(profile);
+ result = pdfas.sign(signParameter);
+ fos.close();
+ name = getName(outFile, "PDF-AS Signatur1");
+ Assert.assertEquals("null test null 123 c null Andreas Fitzek ECC", name);
+
+
+ }
+
+ private String getName(String fileName, String sigFieldName) throws IOException {
+ PDDocument pdDoc = PDDocument.load(new File(fileName));
+ PDSignature signature = null;
+ PDSignatureField signatureField;
+ PDAcroForm acroForm = pdDoc.getDocumentCatalog().getAcroForm();
+ if (acroForm != null) {
+ List<PDField> aa = acroForm.getFields();
+ signatureField = (PDSignatureField) acroForm.getField(sigFieldName);
+ if (signatureField != null) {
+ // retrieve signature dictionary
+ signature = signatureField.getSignature();
+ if (signature != null) {
+ String name = signature.getName();
+ return name;
+
+ }
+
+ }
+ }
+ return null;
+ }
+
+}
diff --git a/pdf-as-cli/src/test/resources/pdfas-config/cfg/advancedconfig.properties b/pdf-as-cli/src/test/resources/pdfas-config/cfg/advancedconfig.properties
new file mode 100644
index 00000000..d6b965cd
--- /dev/null
+++ b/pdf-as-cli/src/test/resources/pdfas-config/cfg/advancedconfig.properties
@@ -0,0 +1,107 @@
+######################################################################
+# Fortgeschrittene PDF-AS Konfiguration
+#
+# Hier koennen fortgeschrittene Einstellungen getaetigt werden.
+# Die hier angefuehrten Eigenschaften werden grundsaetzlich durch die
+# interne Standard-Konfiguration abgedeckt und sind deshalb hier
+# lediglich als Kommentare ausgefuehrt. Die Werte entsprechen jenen
+# der Standard-Konfiguration.
+# Diese Konfiguration muss in config.properties via include-
+# Instruktion eingebunden werden:
+# include.advancedconfig = advancedconfig.properties
+#####################################################################
+
+# Aktiviert, oder deaktiviert grundsaetzlich das - potenziell zeit- und ressourcen-aufwaendige
+# Suchen nach Platzhalter-Bildern in PDF-Dokumenten
+# Festlegung fuer einzelnes Profil
+# sig_obj.PROFILE.enable_placeholder_search=[true|false]
+# Die Suche ist standardmaessig aus Sicherheitsgruenden deaktiviert (Defaultwert hier = false)
+# Es muss bewusst sein, dass ueber einen Platzhalter benutzerseitig bestimmte Profile zur Signatur
+# ausgewaehlt werden koennen!
+
+#enable_placeholder_search=true
+
+
+#Aktiviert oder deaktiviert die Kompatibilität mit dem PAdES Signaturstandard manuell
+sig_obj.PAdESCompatibility=true
+#Überprüft PAdES Kompatibiltät für lokale BKU
+sig_obj.CheckPAdESCompatibility=true
+
+
+# These values should be configured at runtime:
+
+# Set this for placeholder Identifier
+# default is unset
+#placeholder_id=
+
+# Set this for placeholder Mode
+# MATCH_MODE_STRICT = 0
+# MATCH_MODE_MODERATE = 1
+# MATCH_MODE_LENIENT = 2
+# MATCH_MODE_SORTED = 3
+#placeholder_mode=
+
+##################
+# Signaturdienste
+
+
+## Lokale BKU
+
+#bku.available_for_web=true
+#bku.available_for_commandline=true
+#bku.sign.KeyboxIdentifier=SecureSignatureKeypair
+
+
+## Online BKU (MOCCA)
+
+#moc.available_for_web=true
+#moc.available_for_commandline=false
+#moc.sign.KeyboxIdentifier=SecureSignatureKeypair
+
+
+## Handy
+
+#mobile.sign.KeyboxIdentifier=SecureSignatureKeypair
+#mobiletest.sign.KeyboxIdentifier=SecureSignatureKeypair
+
+
+## MOA
+
+#moa.available_for_web=true
+#moa.available_for_commandline=true
+
+# MOA Detached Signieren aus Konsole moeglich - zurzeit moeglich nur mit BKU
+
+#moa.sign.console.detached.enabled=false
+
+# PDF/A-1b Unterstuetzung fuer alle Profile einschalten
+
+#default.SIG_PDFA1B_VALID=false
+
+
+# BAIK-Signatur Unterstuetzung fuer alle Profile einschalten
+
+#default.SIG_BAIK_ENABLED=false
+
+# Standardwert fuer "Reason"-Feld der jeweiligen Signatur
+
+#default.adobeSignReasonValue=Informationen zur Pr\u00FCfung finden Sie unter http://www.signaturpruefung.gv.at
+
+# Standard Prueflink fuer die Adobe Signaturkennzeichnung (nur relevant falls Adobe Plugin fuer Pruefung verwendet wird)
+
+#default.verifyURL=http://www.signaturpruefung.gv.at
+
+# Standard Alternativer Text fuer den Signaturblock (WAI) (globale Einstellung)
+
+#default.sigLogoAltText=Abgebildet ist eine Standard-Signaturbildmarke.
+
+#register Verificators
+
+default.verifier.01=at.gv.egiz.pdfas.sigs.pades.PAdESVerifier
+
+#default.verifier.02=at.gv.egiz.pdfas.sigs.pkcs7detached.PKCS7DetachedVerifier
+
+#Enable background color detection
+#sigblock.placement.bgcolor.detection.enabled=true
+#sigblock.placement.debug.file=/home/user/temp/debugImg.png
+#runtime.backend=PDFBOX_2_BACKEND
diff --git a/pdf-as-cli/src/test/resources/pdfas-config/cfg/config.properties b/pdf-as-cli/src/test/resources/pdfas-config/cfg/config.properties
new file mode 100644
index 00000000..8e22b5b7
--- /dev/null
+++ b/pdf-as-cli/src/test/resources/pdfas-config/cfg/config.properties
@@ -0,0 +1,108 @@
+######################################################################
+# PDF-AS Konfiguration
+#
+# Diese Datei enthaelt empfohlene Einstellungen fuer PDF-AS.
+#
+# Hinweis: Hier werden die wichtigsten Einstellungsmoeglichkeiten
+# angeboten. Eine fortgeschrittene Konfiguration ist ueber die Datei
+# advancedconfig.properties moeglich, die mit der Include-Anweisung:
+# include.advancedconfig = advancedconfig.properties eingebunden
+# eingebunden werden kann.
+######################################################################
+
+
+
+##################
+# Signaturdienste
+# Hier werden die verwendbaren Signaturdienste (Lokale BKU, Online BKU, Handy-Signatur, MOA)
+# angefuehrt.
+
+##
+# Lokal installierte Buergerkartensoftware
+# ohne SSL: http://127.0.0.1:3495/http-security-layer-request
+# mit SSL : https://127.0.0.1:3496/https-security-layer-request
+# Signatur
+bku.sign.url=http://127.0.0.1:3495/http-security-layer-request
+# Verifikation
+bku.verify.url=http://127.0.0.1:3495/http-security-layer-request
+
+
+##
+# Handy-Signatur
+# Signaturservice URL
+mobile.sign.url=https://www.handy-signatur.at/mobile/https-security-layer-request/default.aspx
+
+##
+# MOA Signatur
+# Signaturservice URL
+moa.sign.url=http://localhost:8080/moa-spss/services/SignatureCreation
+# Identifier fuer den zu verwendenden serverseitig hinterlegten Signaturschluessel.
+# Siehe auch http://joinup.ec.europa.eu/site/moa-idspss/moa-spss-1.5.1/doc/handbook/config/config.html#konfigurationsparameter_ss
+moa.sign.KeyIdentifier=KG_allgemein
+moa.sign.Certificate=test.cer
+
+##
+# MOA Verifikation
+# Verifikationsservice URL
+moa.verify.url=http://localhost:8080/moa-spss/services/SignatureVerification
+# Identifier des zu verwendenden Vertrauensprofils fuer die Signaturpruefung.
+# Siehe auch http://joinup.ec.europa.eu/site/moa-idspss/moa-spss-1.5.1/doc/handbook/config/config.html#konfigurationsparameter_sp_certificatevalidation_pathvalidation_trustprofile
+moa.verify.TrustProfileID=SecureSignature
+
+# Bietet die Moeglichkeit, eine fortgeschrittene Konfiguration einzubinden.
+include.advancedconfig = advancedconfig.properties
+
+sigblockparameter.key.regex=^([A-za-z]){1,20}$
+sigblockparameter.value.regex=^([\\p{Print}]){1,100}$
+
+
+#####################################################################################################
+# Unterstuetzte Signaturprofile
+# Hinweise zum Include-Mechanismus:
+# - Pfade sind relativ zu dieser Konfigurationsdatei zu setzen.
+# - Es koennen Wildcards verwendet werden.
+# z.B. include = profiles/*AMTSSIGNATURBLOCK*.properties
+# - Bei mehrfachen Include-Anweisungen ist darauf zu achten, dass die Include-Keys eindeutig sind.
+# Dazu sollte ein beliebiger Bezeichner an "include." angehaengt werden.
+# z.B. include.standard = profiles/SIGNATURBLOCK*.properties
+# include.amtssignatur = profiles/*AMTSSIGNATUR*.properties
+# - Include-Keys werden lexikografisch sortiert, bevor die Include-Anweisungen ausgefuehrt werden.
+# Dadurch kann eine Reihenfolge der Includes vorgegeben werden.
+#
+# Anm.: profiles/SIGNATURBLOCK_DE.properties enthaelt Erlaeuterungen in Hinblick auf die
+# Konfiguration einzelner Profile.
+
+# Standard-Profile
+include.01 = profiles/*.properties
+#include.02 = profiles/BASE_LOGO.properties
+#include.02 = profiles/SIGNATURBLOCK_DE.properties
+#include.03 = profiles/SIGNATURBLOCK_DE_NOTE.properties
+#include.04 = profiles/SIGNATURBLOCK_DE_PDFA.properties
+#include.05 = profiles/SIGNATURBLOCK_DE_PDFA_NOTE.properties
+#include.06 = profiles/SIGNATURBLOCK_EN.properties
+#include.07 = profiles/SIGNATURBLOCK_EN_NOTE.properties
+#include.08 = profiles/SIGNATURBLOCK_EN_PDFA.properties
+#include.09 = profiles/SIGNATURBLOCK_EN_PDFA_NOTE.properties
+#include.10 = profiles/SIGNATURBLOCK_MINIMAL_DE.properties
+#include.12 = profiles/SIGNATURBLOCK_SMALL_DE.properties
+#include.13 = profiles/SIGNATURBLOCK_SMALL_DE_NOTE.properties
+#include.14 = profiles/SIGNATURBLOCK_SMALL_EN.properties
+#include.15 = profiles/SIGNATURBLOCK_SMALL_EN_NOTE.properties
+
+# Amtssignatur-Profile
+#include.16 = profiles/AMTSSIGNATURBLOCK_DE.properties
+#include.17 = profiles/AMTSSIGNATURBLOCK_EN.properties
+#include.18 = profiles/AMTSSIGNATURBLOCK_DE_SMALL.properties
+#include.19 = profiles/AMTSSIGNATURBLOCK_EN_SMALL.properties
+
+
+# BAIK-Profile
+#include.20 = profiles/BAIK_ARCHIV_SIGNATUR.properties
+#include.21 = profiles/BAIK_URKUNDE_SIGNATUR.properties
+
+#include.22 = profiles/justizsignatur.properties
+
+# Legt das Standard-Signaturprofil fest
+sig_obj.type.default=SIGNATURBLOCK_SMALL_DE_NOTE
+
+
diff --git a/pdf-as-cli/src/test/resources/pdfas-config/cfg/log4j.properties b/pdf-as-cli/src/test/resources/pdfas-config/cfg/log4j.properties
new file mode 100644
index 00000000..9cc9f155
--- /dev/null
+++ b/pdf-as-cli/src/test/resources/pdfas-config/cfg/log4j.properties
@@ -0,0 +1,23 @@
+log4j.rootLogger = INFO, CONSOLE
+#, ROLLINGFILE
+
+# DETAIL LEVELS
+log4j.logger.at.gv.egiz = INFO
+log4j.logger.at.knowcenter = INFO
+# Statistical logger
+#log4j.logger.statistic = INFO, STATISTIC
+
+# CONSOLE
+log4j.appender.CONSOLE = org.apache.log4j.ConsoleAppender
+log4j.appender.CONSOLE.layout = org.apache.log4j.PatternLayout
+log4j.appender.CONSOLE.layout.ConversionPattern = %-4r [%t] %-5p %c %x - %m%n
+log4j.appender.CONSOLE.threshold = DEBUG
+log4j.appender.CONSOLE.Target = System.out
+
+# ROLLINGFILE
+#log4j.appender.ROLLINGFILE = org.apache.log4j.RollingFileAppender
+#log4j.appender.ROLLINGFILE.File = ${catalina.base}/logs/pdf-as.log
+#log4j.appender.ROLLINGFILE.MaxFileSize = 10240KB
+#log4j.appender.ROLLINGFILE.MaxBackupIndex = 1
+#log4j.appender.ROLLINGFILE.layout = org.apache.log4j.PatternLayout
+#log4j.appender.ROLLINGFILE.layout.ConversionPattern = [%-5p@%d{dd.MM.yyyy HH:mm:ss}] %c:%M:%L - %m%n
diff --git a/pdf-as-cli/src/test/resources/pdfas-config/cfg/logback.xml b/pdf-as-cli/src/test/resources/pdfas-config/cfg/logback.xml
new file mode 100644
index 00000000..3665f8f0
--- /dev/null
+++ b/pdf-as-cli/src/test/resources/pdfas-config/cfg/logback.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<configuration>
+
+ <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
+ <layout class="ch.qos.logback.classic.PatternLayout">
+ <Pattern>%date{ISO8601} [%thread] %-5level %class - %msg%n</Pattern>
+ </layout>
+ </appender>
+
+ <logger name="at.gv.egiz" level="INFO"/>
+ <logger name="at.knowcenter" level="INFO"/>
+
+ <root level="INFO">
+ <appender-ref ref="STDOUT" />
+ </root>
+</configuration> \ No newline at end of file
diff --git a/pdf-as-cli/src/test/resources/pdfas-config/cfg/profiles.zip b/pdf-as-cli/src/test/resources/pdfas-config/cfg/profiles.zip
new file mode 100644
index 00000000..c520ad43
--- /dev/null
+++ b/pdf-as-cli/src/test/resources/pdfas-config/cfg/profiles.zip
Binary files differ
diff --git a/pdf-as-cli/src/test/resources/pdfas-config/cfg/profiles/BASE_LOGO.properties b/pdf-as-cli/src/test/resources/pdfas-config/cfg/profiles/BASE_LOGO.properties
new file mode 100644
index 00000000..8234d4d1
--- /dev/null
+++ b/pdf-as-cli/src/test/resources/pdfas-config/cfg/profiles/BASE_LOGO.properties
@@ -0,0 +1,28 @@
+###################################################################################################
+# PROFIL: Signature block with logo
+
+sig_obj.types.BASE_LOGO=on
+
+sig_obj.BASE_LOGO.description= Signature block with logo
+sig_obj.BASE_LOGO.key.SIG_META=Pr\u00fcfinformation
+
+sig_obj.BASE_LOGO.pos=w:230.0;f:80
+sig_obj.BASE_LOGO.adobeSignFieldValue=PDF-AS Signatur
+sig_obj.BASE_LOGO.adobeSignReasonValue=Signaturpruefung unter http://www.signaturpruefung.gv.at
+sig_obj.BASE_LOGO.verifyURL=http://www.signaturpruefung.gv.at
+
+sig_obj.BASE_LOGO.value.SIG_LABEL=./images/signatur-logo_de.png
+sig_obj.BASE_LOGO.table.main.Style.imagescaletofit=65.0;65.0
+
+# WAI
+sig_obj.BASE_LOGO.sigLogoAltText=Abgebildet ist eine Standard-Signaturbildmarke.
+
+#---------------------- MAIN TABLE -------------------------
+sig_obj.BASE_LOGO.table.main.1=SIG_LABEL-i
+
+sig_obj.BASE_LOGO.table.main.Style.bgcolor=255 255 255
+sig_obj.BASE_LOGO.table.main.Style.border=0
+sig_obj.BASE_LOGO.table.main.Style.halign=center
+sig_obj.BASE_LOGO.table.main.Style.valign=middle
+sig_obj.BASE_LOGO.table.main.Style.font=TTF:DejaVuSansCondensed-Bold.ttf,5
+sig_obj.BASE_LOGO.table.main.Style.valuefont=TTF:DejaVuSansMono.ttf,5 \ No newline at end of file
diff --git a/pdf-as-cli/src/test/resources/pdfas-config/cfg/profiles/BASE_NORMAL.properties b/pdf-as-cli/src/test/resources/pdfas-config/cfg/profiles/BASE_NORMAL.properties
new file mode 100644
index 00000000..b72af10a
--- /dev/null
+++ b/pdf-as-cli/src/test/resources/pdfas-config/cfg/profiles/BASE_NORMAL.properties
@@ -0,0 +1,145 @@
+
+###################################################################################################
+# PROFIL: Basissignatur Deutsch
+
+# Kurzbeschreibung
+sig_obj.BASE_NORMAL.description=Basissignatur Deutsch
+
+# Aktiviert ("on") bzw. deaktiviert ("off") dieses Profil.
+# "verify_only" beschraenkt das Profil auf Signaturpruefung, d.h. es kann nicht zum Erstellen von
+# Signaturen verwendet werden.
+# "sign_only" beschraenkt das Profil insofern, dass es nur noch zum Signieren, nicht aber
+# zum Pruefen verwendet werden kann.
+sig_obj.types.BASE_NORMAL=on
+
+# Festlegung der einzelner Bezeichnungen im Signaturblock.
+sig_obj.BASE_NORMAL.key.SIG_SUBJECT=Unterzeichner
+sig_obj.BASE_NORMAL.key.SIG_DATE=Datum/Zeit-UTC
+sig_obj.BASE_NORMAL.key.SIG_ISSUER=Aussteller-Zertifikat
+sig_obj.BASE_NORMAL.key.SIG_NUMBER=Serien-Nr.
+sig_obj.BASE_NORMAL.key.SIG_META=Pr\u00fcfinformation
+sig_obj.BASE_NORMAL.key.SIG_NOTE=Hinweis
+
+
+# Festlegung des Unterzeichnernamens.
+# Es moeglich, den Namen des Signators dynamisch aus Informationen des verwendeten Zertifikats
+# zusammenzusetzen. Konkret kann auf die einzelnen RDN Teile des Issuer DN und des Subject DN
+# des Signaturzertifikats wie im folgenden Beispiel illustriert zugegriffen werden:
+#
+# (1) sig_obj.PROFIL.value.SIG_SUBJECT= ${subjectDieses mit einer qualifizierten elektronischen Signatur versehene Dokument hat gem\u00e4\u00df Art. 25 Abs. 2 der Verordnung (EU) Nr. 910/2014 vom 23. Juli 2014 (\"eIDAS-VO\") die gleiche Rechtswirkung wie ein handschriftlich unterschriebenes Dokument..CN}${subject.O != null ? ("\n" + subject.O) : ""}
+# (2) sig_obj.PROFIL.value.SIG_SUBJECT= ${subject.T \!\= null ? (subject.T + " ") \: ""}${subject.CN}
+#
+# Beispiel (1) gibt die Organisation des Unterzeichners an, Beispiel (2) Titel und Name.
+#
+# Die Notation ${..} ermoeglicht die dynamische Auswertung eines Ausdrucks. Verfuegbar sind "subject"
+# und "issuer" und die im Zertifikat-DN vorhandenen RDNs.
+#
+# Achtung:
+# Fuer die binaere Signatur muss die maximale Anzahl zu erwartender Zeichen in der globalen Einstellung
+# defaults.phlength.SIG_SUBJECT=...
+# bzw. profileweise via
+# sig_obj.PROFIL.phlength.SIG_SUBJECT=...
+# festgelegt werden.
+sig_obj.BASE_NORMAL.value.SIG_SUBJECT=${subject.T != null ? (subject.T + " ") : ""}${subject.CN}
+sig_obj.BASE_NORMAL.value.SIG_ISSUER=${issuer.T != null ? (issuer.T + " ") : ""}${issuer.CN}
+sig_obj.BASE_NORMAL.value.SIG_NUMBER=${sn}
+sig_obj.BASE_NORMAL.value.SIG_META=Informationen zur Pr\u00FCfung der elektronischen Signatur finden Sie unter: https://www.signaturpruefung.gv.at
+sig_obj.BASE_NORMAL.value.SIG_NOTE=Dieses mit einer qualifizierten elektronischen Signatur versehene Dokument hat gem\u00e4\u00df Art. 25 Abs. 2 der Verordnung (EU) Nr. 910/2014 vom 23. Juli 2014 (\"eIDAS-VO\") die gleiche Rechtswirkung wie ein handschriftlich unterschriebenes Dokument.
+## Profilspezifische Festlegung der Position des Signaturblocks
+#
+# sig_obj.PROFILE.pos=[p:["auto"|"new"|pagenumber];][x:["auto"|floatvalue];][y:["auto"|floatvalue];][w:["auto"|width_floatvalue];][f:footerheight_floatvalue]
+# z.B.
+# sig_obj.PROFILE.pos=p:1;x:40.0;y:800.0;w:400.0;f:80
+sig_obj.BASE_NORMAL.pos=f:80
+
+sig_obj.BASE_NORMAL.adobeSignFieldValue=PDF-AS Signatur
+# Text, der im Adobe Reader unter "Reason" angezeigt wird.
+sig_obj.BASE_NORMAL.adobeSignReasonValue=Signaturpruefung unter http://www.signaturpruefung.gv.at
+
+# URL fuer die Signaturpruefung durch das Adobe Acrobat Professional PDF-AS Plugin.
+#sig_obj.SIGNATURBLOCK_DE.verifyURL=http://www.signaturpruefung.gv.at
+
+# WAI
+sig_obj.BASE_NORMAL.sigLogoAltText=Abgebildet ist eine Standard-Signaturbildmarke.
+
+# Pruefhinweis im Signaturblock
+#sig_obj.SIGNATURBLOCK_DE.value.SIG_META=Signaturpruefung unter: http://www.signaturpruefung.gv.at
+
+# Signaturlogo im Signaturblock
+sig_obj.BASE_NORMAL.value.SIG_LABEL=./images/signatur-logo_de.png
+
+
+#---------------------- MAIN TABLE -------------------------
+sig_obj.BASE_NORMAL.table.main.1=SIG_LABEL-i|TABLE-info
+#sig_obj.BASE_NORMAL.table.main.2=SIG_NOTE-cv
+
+sig_obj.BASE_NORMAL.table.main.ColsWidth=1 6
+sig_obj.BASE_NORMAL.table.main.Style.bgcolor=255 255 255
+sig_obj.BASE_NORMAL.table.main.Style.padding=4
+sig_obj.BASE_NORMAL.table.main.Style.border=0.1
+
+
+## Horizontale Ausrichtung der Eintraege im Signaturblock.
+#
+# sig_obj.PROFILE.table.TABLE_NAME.Style.halign=[left|center|right]
+# sig_obj.PROFILE.table.TABLE_NAME.Style.valuehalign=[left|lineCenter|center|right]
+# sig_obj.PROFILE.table.TABLE_NAME.Style.imagehalign=[left|center|right]
+sig_obj.BASE_NORMAL.table.main.Style.halign=right
+
+
+## Vertikale Ausrichtung der Eintraege im Signaturblock.
+#
+# sig_obj.PROFILE.table.TABLE_NAME.Style.valign=[bottom|middle|top]
+# sig_obj.PROFILE.table.TABLE_NAME.Style.valuevalign=[bottom|middle|top]
+# sig_obj.PROFILE.table.TABLE_NAME.Style.imagevalign=[bottom|middle|top]
+sig_obj.BASE_NORMAL.table.main.Style.valuehalign=left
+sig_obj.BASE_NORMAL.table.main.Style.valign=top
+sig_obj.BASE_NORMAL.table.main.Style.imagevalign=middle
+
+
+## Schriftart
+#
+# sig_obj.PROFIL.table.TABLE_NAME.Style.font=FACE,WEIGHT,STYLE
+# Setzt die Schriftart fuer die gesamte Tabelle TABLE_NAME.
+#
+# sig_obj.PROFIL.table.TABLE_NAME.Style.valuefont=FACE,WEIGHT,STYLE
+# Setzt die Schriftart ausschliesslich fuer die Werte-Zellen der Tabelle TABLE_NAME.
+#
+# FACE: HELVETICA | TIMES_ROMAN | COURIER
+# WEIGHT: float value
+# STYLE: NORMAL | BOLD | ITALIC | BOLDITALIC | UNDERLINE | STRIKETHRU
+#
+# z.B. sig_obj.SIGNATURBLOCK_DE.table.main.Style.valuefont=COURIER,8,NORMAL
+sig_obj.BASE_NORMAL.table.main.Style.font=TTF:DejaVuSansCondensed-Bold.ttf,8
+sig_obj.BASE_NORMAL.table.main.Style.valuefont=TTF:DejaVuSansMono.ttf,8
+
+#---------------------- INFO TABLE -------------------------
+sig_obj.BASE_NORMAL.table.info.ColsWidth=1 4
+sig_obj.BASE_NORMAL.table.info.1=SIG_SUBJECT-cv
+sig_obj.BASE_NORMAL.table.info.2=SIG_DATE-cv
+#sig_obj.BASE_NORMAL.table.info.3=SIG_ISSUER-cv
+#sig_obj.BASE_NORMAL.table.info.4=SIG_NUMBER-cv
+sig_obj.BASE_NORMAL.table.info.3=SIG_META-cv
+
+## Signaturkennzeichnung (fuer Adobe Acrobat)
+#
+# Ein-/Ausschalten der Signaturkennung:
+# sig_obj.PROFILE.adobeSignEnabled=true|false (default: true)
+#
+# Name fuer die Signaturkennzeichnung (binaer)
+# sig_obj.PROFILE.adobeSignText.binary=PDF-AS
+#
+# Name fuer die Signaturkennzeichnung (binaer)
+# sig_obj.PROFILE.adobeSignText.textual=PDF-AS
+#
+# Name fuer die PDF-Signatur
+# sig_obj.PROFILE.adobeSignFieldValue=PDF-AS Signatur
+#
+# "Reason"-Feld der jeweiligen Signatur
+# sig_obj.PROFILE.adobeSignReasonValue=Informationen zur Pr\u00FCfung finden Sie unter http://www.signaturpruefung.gv.at
+#
+# Prueflink fuer die Adobe Signaturkennzeichnung (nur relevant falls Adobe Plugin fuer Pruefung verwendet wird)
+# sig_obj.PROFILE.verifyURL=http://www.signaturpruefung.gv.at
+#
+# Alternativer Text fuer den Signaturblock (WAI) (globale Einstellung)
+# sig_obj.PROFILE.sigLogoAltText=Abgebildet ist eine Standard-Signaturbildmarke.
diff --git a/pdf-as-cli/src/test/resources/pdfas-config/cfg/profiles/BASE_NORMAL_NOTE.properties b/pdf-as-cli/src/test/resources/pdfas-config/cfg/profiles/BASE_NORMAL_NOTE.properties
new file mode 100644
index 00000000..3d2af547
--- /dev/null
+++ b/pdf-as-cli/src/test/resources/pdfas-config/cfg/profiles/BASE_NORMAL_NOTE.properties
@@ -0,0 +1,10 @@
+
+###################################################################################################
+# PROFIL: Basissignatur Deutsch, mit Hinweistext
+
+# Kurzbeschreibung
+sig_obj.BASE_NORMAL_NOTE.description=Basissignatur Deutsch, mit Hinweistext
+sig_obj.BASE_NORMAL_NOTE.parent=BASE_NORMAL
+sig_obj.types.BASE_NORMAL_NOTE=on
+
+sig_obj.BASE_NORMAL_NOTE.table.main.2=SIG_NOTE-cv
diff --git a/pdf-as-cli/src/test/resources/pdfas-config/cfg/profiles/SIGNATURBLOCK_DE.properties b/pdf-as-cli/src/test/resources/pdfas-config/cfg/profiles/SIGNATURBLOCK_DE.properties
new file mode 100644
index 00000000..242ef793
--- /dev/null
+++ b/pdf-as-cli/src/test/resources/pdfas-config/cfg/profiles/SIGNATURBLOCK_DE.properties
@@ -0,0 +1,8 @@
+
+###################################################################################################
+# PROFIL: Standardsignatur Deutsch
+
+# Kurzbeschreibung
+sig_obj.SIGNATURBLOCK_DE.description=Standardsignatur Deutsch
+sig_obj.SIGNATURBLOCK_DE.parent=BASE_NORMAL
+sig_obj.types.SIGNATURBLOCK_DE=on \ No newline at end of file
diff --git a/pdf-as-cli/src/test/resources/pdfas-config/cfg/profiles/SIGNATURBLOCK_DE_NOTE.properties b/pdf-as-cli/src/test/resources/pdfas-config/cfg/profiles/SIGNATURBLOCK_DE_NOTE.properties
new file mode 100644
index 00000000..b6309031
--- /dev/null
+++ b/pdf-as-cli/src/test/resources/pdfas-config/cfg/profiles/SIGNATURBLOCK_DE_NOTE.properties
@@ -0,0 +1,9 @@
+###################################################################################################
+# PROFIL: Standardsignatur Deutsch, mit Hinweistext
+
+sig_obj.SIGNATURBLOCK_DE_NOTE.description=Standardsignatur Deutsch, mit Hinweistext
+sig_obj.SIGNATURBLOCK_DE_NOTE.parent=BASE_NORMAL_NOTE
+sig_obj.types.SIGNATURBLOCK_DE_NOTE=on
+
+#---------------------- INFO TABLE -------------------------
+sig_obj.SIGNATURBLOCK_DE_NOTE.table.info.ColsWidth=1 5 \ No newline at end of file
diff --git a/pdf-as-cli/src/test/resources/pdfas-config/cfg/profiles/SIGNATURBLOCK_DE_NOTE_DYNAMIC.properties b/pdf-as-cli/src/test/resources/pdfas-config/cfg/profiles/SIGNATURBLOCK_DE_NOTE_DYNAMIC.properties
new file mode 100644
index 00000000..fdf4a6c2
--- /dev/null
+++ b/pdf-as-cli/src/test/resources/pdfas-config/cfg/profiles/SIGNATURBLOCK_DE_NOTE_DYNAMIC.properties
@@ -0,0 +1,16 @@
+###################################################################################################
+# PROFIL: Standardsignatur Deutsch, mit Hinweistext
+
+sig_obj.SIGNATURBLOCK_DE_NOTE_DYNAMIC.description=Standardsignatur Deutsch, mit Hinweistext
+sig_obj.SIGNATURBLOCK_DE_NOTE_DYNAMIC.parent=BASE_NORMAL_NOTE
+sig_obj.types.SIGNATURBLOCK_DE_NOTE_DYNAMIC=on
+
+
+sig_obj.SIGNATURBLOCK_DE_NOTE_DYNAMIC.value.SIG_SUBJECT=${sbp.subject} test ${sbp.foo} 123 ${subject.T != null ? \
+ (subject.T + " a "+sbp.subject) : "c "+sbp.subject+" "}${subject.CN}
+sig_obj.SIGNATURBLOCK_DE_NOTE_DYNAMIC.value.SIG_ISSUER=${issuer.T != null ? (issuer.T + " ") : ""}${issuer.CN}
+sig_obj.SIGNATURBLOCK_DE_NOTE_DYNAMIC.value.SIG_NUMBER=${sn}
+sig_obj.SIGNATURBLOCK_DE_NOTE_DYNAMIC.value.SIG_META=Informationen zur Pr\u00FCfung der elektronischen Signatur finden Sie unter: https://www.signaturpruefung.gv.at
+
+#---------------------- INFO TABLE -------------------------
+sig_obj.SIGNATURBLOCK_DE_NOTE_DYNAMIC.table.info.ColsWidth=1 5 \ No newline at end of file
diff --git a/pdf-as-cli/src/test/resources/pdfas-config/fonts/DejaVuSansCondensed-Bold.ttf b/pdf-as-cli/src/test/resources/pdfas-config/fonts/DejaVuSansCondensed-Bold.ttf
new file mode 100644
index 00000000..2364a473
--- /dev/null
+++ b/pdf-as-cli/src/test/resources/pdfas-config/fonts/DejaVuSansCondensed-Bold.ttf
Binary files differ
diff --git a/pdf-as-cli/src/test/resources/pdfas-config/fonts/DejaVuSansCondensed.ttf b/pdf-as-cli/src/test/resources/pdfas-config/fonts/DejaVuSansCondensed.ttf
new file mode 100644
index 00000000..94a9b01c
--- /dev/null
+++ b/pdf-as-cli/src/test/resources/pdfas-config/fonts/DejaVuSansCondensed.ttf
Binary files differ
diff --git a/pdf-as-cli/src/test/resources/pdfas-config/fonts/DejaVuSansMono.ttf b/pdf-as-cli/src/test/resources/pdfas-config/fonts/DejaVuSansMono.ttf
new file mode 100644
index 00000000..a96ac6f4
--- /dev/null
+++ b/pdf-as-cli/src/test/resources/pdfas-config/fonts/DejaVuSansMono.ttf
Binary files differ
diff --git a/pdf-as-cli/src/test/resources/pdfas-config/fonts/arial.ttf b/pdf-as-cli/src/test/resources/pdfas-config/fonts/arial.ttf
new file mode 100644
index 00000000..12cc15c8
--- /dev/null
+++ b/pdf-as-cli/src/test/resources/pdfas-config/fonts/arial.ttf
Binary files differ
diff --git a/pdf-as-cli/src/test/resources/pdfas-config/images/Baik_Archiv.gif b/pdf-as-cli/src/test/resources/pdfas-config/images/Baik_Archiv.gif
new file mode 100644
index 00000000..3f2e6cfc
--- /dev/null
+++ b/pdf-as-cli/src/test/resources/pdfas-config/images/Baik_Archiv.gif
Binary files differ
diff --git a/pdf-as-cli/src/test/resources/pdfas-config/images/Baik_Urkunde.gif b/pdf-as-cli/src/test/resources/pdfas-config/images/Baik_Urkunde.gif
new file mode 100644
index 00000000..502a0c4c
--- /dev/null
+++ b/pdf-as-cli/src/test/resources/pdfas-config/images/Baik_Urkunde.gif
Binary files differ
diff --git a/pdf-as-cli/src/test/resources/pdfas-config/images/amtsignatur-logo_demo.png b/pdf-as-cli/src/test/resources/pdfas-config/images/amtsignatur-logo_demo.png
new file mode 100644
index 00000000..0e9a6b06
--- /dev/null
+++ b/pdf-as-cli/src/test/resources/pdfas-config/images/amtsignatur-logo_demo.png
Binary files differ
diff --git a/pdf-as-cli/src/test/resources/pdfas-config/images/justizsignatur_neu.gif b/pdf-as-cli/src/test/resources/pdfas-config/images/justizsignatur_neu.gif
new file mode 100644
index 00000000..99debd3e
--- /dev/null
+++ b/pdf-as-cli/src/test/resources/pdfas-config/images/justizsignatur_neu.gif
Binary files differ
diff --git a/pdf-as-cli/src/test/resources/pdfas-config/images/seal-logo_de.png b/pdf-as-cli/src/test/resources/pdfas-config/images/seal-logo_de.png
new file mode 100644
index 00000000..6032cb55
--- /dev/null
+++ b/pdf-as-cli/src/test/resources/pdfas-config/images/seal-logo_de.png
Binary files differ
diff --git a/pdf-as-cli/src/test/resources/pdfas-config/images/seal-logo_en.png b/pdf-as-cli/src/test/resources/pdfas-config/images/seal-logo_en.png
new file mode 100644
index 00000000..bc5c37c7
--- /dev/null
+++ b/pdf-as-cli/src/test/resources/pdfas-config/images/seal-logo_en.png
Binary files differ
diff --git a/pdf-as-cli/src/test/resources/pdfas-config/images/signatur-logo_de.png b/pdf-as-cli/src/test/resources/pdfas-config/images/signatur-logo_de.png
new file mode 100644
index 00000000..988c0793
--- /dev/null
+++ b/pdf-as-cli/src/test/resources/pdfas-config/images/signatur-logo_de.png
Binary files differ
diff --git a/pdf-as-cli/src/test/resources/pdfas-config/images/signatur-logo_de_highest_resolution.png b/pdf-as-cli/src/test/resources/pdfas-config/images/signatur-logo_de_highest_resolution.png
new file mode 100644
index 00000000..c9a2da9b
--- /dev/null
+++ b/pdf-as-cli/src/test/resources/pdfas-config/images/signatur-logo_de_highest_resolution.png
Binary files differ
diff --git a/pdf-as-cli/src/test/resources/pdfas-config/images/signatur-logo_en.png b/pdf-as-cli/src/test/resources/pdfas-config/images/signatur-logo_en.png
new file mode 100644
index 00000000..682d3833
--- /dev/null
+++ b/pdf-as-cli/src/test/resources/pdfas-config/images/signatur-logo_en.png
Binary files differ
diff --git a/pdf-as-cli/src/test/resources/pdfas-config/images/signatur-logo_en_highest_resolution.png b/pdf-as-cli/src/test/resources/pdfas-config/images/signatur-logo_en_highest_resolution.png
new file mode 100644
index 00000000..59a0feba
--- /dev/null
+++ b/pdf-as-cli/src/test/resources/pdfas-config/images/signatur-logo_en_highest_resolution.png
Binary files differ
diff --git a/pdf-as-cli/src/test/resources/pdfas-config/licenses/adobe/AFM_License.html b/pdf-as-cli/src/test/resources/pdfas-config/licenses/adobe/AFM_License.html
new file mode 100644
index 00000000..d4d7e8aa
--- /dev/null
+++ b/pdf-as-cli/src/test/resources/pdfas-config/licenses/adobe/AFM_License.html
@@ -0,0 +1 @@
+<html> <head> <meta http-equiv="content-type" content="text/html;charset=iso-8859-1"> <meta name="generator" content="Adobe GoLive 4"> <title>Core 14 AFM Files - ReadMe</title> </head> <body bgcolor="white"> <font color="white">or</font> <table border="0" cellpadding="0" cellspacing="2"> <tr> <td width="40"></td> <td width="300">This file and the 14 PostScript(R) AFM files it accompanies may be used, copied, and distributed for any purpose and without charge, with or without modification, provided that all copyright notices are retained; that the AFM files are not distributed without this file; that all modifications to this file or any of the AFM files are prominently noted in the modified file(s); and that this paragraph is not modified. Adobe Systems has no responsibility or obligation to support the use of the AFM files. <font color="white">Col</font></td> </tr> </table> </body> </html> \ No newline at end of file
diff --git a/pdf-as-cli/src/test/resources/pdfas-config/licenses/ant/LICENSE b/pdf-as-cli/src/test/resources/pdfas-config/licenses/ant/LICENSE
new file mode 100644
index 00000000..8b5861db
--- /dev/null
+++ b/pdf-as-cli/src/test/resources/pdfas-config/licenses/ant/LICENSE
@@ -0,0 +1,203 @@
+/*
+ * Apache License
+ * Version 2.0, January 2004
+ * http://www.apache.org/licenses/
+ *
+ * TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+ *
+ * 1. Definitions.
+ *
+ * "License" shall mean the terms and conditions for use, reproduction,
+ * and distribution as defined by Sections 1 through 9 of this document.
+ *
+ * "Licensor" shall mean the copyright owner or entity authorized by
+ * the copyright owner that is granting the License.
+ *
+ * "Legal Entity" shall mean the union of the acting entity and all
+ * other entities that control, are controlled by, or are under common
+ * control with that entity. For the purposes of this definition,
+ * "control" means (i) the power, direct or indirect, to cause the
+ * direction or management of such entity, whether by contract or
+ * otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ * outstanding shares, or (iii) beneficial ownership of such entity.
+ *
+ * "You" (or "Your") shall mean an individual or Legal Entity
+ * exercising permissions granted by this License.
+ *
+ * "Source" form shall mean the preferred form for making modifications,
+ * including but not limited to software source code, documentation
+ * source, and configuration files.
+ *
+ * "Object" form shall mean any form resulting from mechanical
+ * transformation or translation of a Source form, including but
+ * not limited to compiled object code, generated documentation,
+ * and conversions to other media types.
+ *
+ * "Work" shall mean the work of authorship, whether in Source or
+ * Object form, made available under the License, as indicated by a
+ * copyright notice that is included in or attached to the work
+ * (an example is provided in the Appendix below).
+ *
+ * "Derivative Works" shall mean any work, whether in Source or Object
+ * form, that is based on (or derived from) the Work and for which the
+ * editorial revisions, annotations, elaborations, or other modifications
+ * represent, as a whole, an original work of authorship. For the purposes
+ * of this License, Derivative Works shall not include works that remain
+ * separable from, or merely link (or bind by name) to the interfaces of,
+ * the Work and Derivative Works thereof.
+ *
+ * "Contribution" shall mean any work of authorship, including
+ * the original version of the Work and any modifications or additions
+ * to that Work or Derivative Works thereof, that is intentionally
+ * submitted to Licensor for inclusion in the Work by the copyright owner
+ * or by an individual or Legal Entity authorized to submit on behalf of
+ * the copyright owner. For the purposes of this definition, "submitted"
+ * means any form of electronic, verbal, or written communication sent
+ * to the Licensor or its representatives, including but not limited to
+ * communication on electronic mailing lists, source code control systems,
+ * and issue tracking systems that are managed by, or on behalf of, the
+ * Licensor for the purpose of discussing and improving the Work, but
+ * excluding communication that is conspicuously marked or otherwise
+ * designated in writing by the copyright owner as "Not a Contribution."
+ *
+ * "Contributor" shall mean Licensor and any individual or Legal Entity
+ * on behalf of whom a Contribution has been received by Licensor and
+ * subsequently incorporated within the Work.
+ *
+ * 2. Grant of Copyright License. Subject to the terms and conditions of
+ * this License, each Contributor hereby grants to You a perpetual,
+ * worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ * copyright license to reproduce, prepare Derivative Works of,
+ * publicly display, publicly perform, sublicense, and distribute the
+ * Work and such Derivative Works in Source or Object form.
+ *
+ * 3. Grant of Patent License. Subject to the terms and conditions of
+ * this License, each Contributor hereby grants to You a perpetual,
+ * worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ * (except as stated in this section) patent license to make, have made,
+ * use, offer to sell, sell, import, and otherwise transfer the Work,
+ * where such license applies only to those patent claims licensable
+ * by such Contributor that are necessarily infringed by their
+ * Contribution(s) alone or by combination of their Contribution(s)
+ * with the Work to which such Contribution(s) was submitted. If You
+ * institute patent litigation against any entity (including a
+ * cross-claim or counterclaim in a lawsuit) alleging that the Work
+ * or a Contribution incorporated within the Work constitutes direct
+ * or contributory patent infringement, then any patent licenses
+ * granted to You under this License for that Work shall terminate
+ * as of the date such litigation is filed.
+ *
+ * 4. Redistribution. You may reproduce and distribute copies of the
+ * Work or Derivative Works thereof in any medium, with or without
+ * modifications, and in Source or Object form, provided that You
+ * meet the following conditions:
+ *
+ * (a) You must give any other recipients of the Work or
+ * Derivative Works a copy of this License; and
+ *
+ * (b) You must cause any modified files to carry prominent notices
+ * stating that You changed the files; and
+ *
+ * (c) You must retain, in the Source form of any Derivative Works
+ * that You distribute, all copyright, patent, trademark, and
+ * attribution notices from the Source form of the Work,
+ * excluding those notices that do not pertain to any part of
+ * the Derivative Works; and
+ *
+ * (d) If the Work includes a "NOTICE" text file as part of its
+ * distribution, then any Derivative Works that You distribute must
+ * include a readable copy of the attribution notices contained
+ * within such NOTICE file, excluding those notices that do not
+ * pertain to any part of the Derivative Works, in at least one
+ * of the following places: within a NOTICE text file distributed
+ * as part of the Derivative Works; within the Source form or
+ * documentation, if provided along with the Derivative Works; or,
+ * within a display generated by the Derivative Works, if and
+ * wherever such third-party notices normally appear. The contents
+ * of the NOTICE file are for informational purposes only and
+ * do not modify the License. You may add Your own attribution
+ * notices within Derivative Works that You distribute, alongside
+ * or as an addendum to the NOTICE text from the Work, provided
+ * that such additional attribution notices cannot be construed
+ * as modifying the License.
+ *
+ * You may add Your own copyright statement to Your modifications and
+ * may provide additional or different license terms and conditions
+ * for use, reproduction, or distribution of Your modifications, or
+ * for any such Derivative Works as a whole, provided Your use,
+ * reproduction, and distribution of the Work otherwise complies with
+ * the conditions stated in this License.
+ *
+ * 5. Submission of Contributions. Unless You explicitly state otherwise,
+ * any Contribution intentionally submitted for inclusion in the Work
+ * by You to the Licensor shall be under the terms and conditions of
+ * this License, without any additional terms or conditions.
+ * Notwithstanding the above, nothing herein shall supersede or modify
+ * the terms of any separate license agreement you may have executed
+ * with Licensor regarding such Contributions.
+ *
+ * 6. Trademarks. This License does not grant permission to use the trade
+ * names, trademarks, service marks, or product names of the Licensor,
+ * except as required for reasonable and customary use in describing the
+ * origin of the Work and reproducing the content of the NOTICE file.
+ *
+ * 7. Disclaimer of Warranty. Unless required by applicable law or
+ * agreed to in writing, Licensor provides the Work (and each
+ * Contributor provides its Contributions) on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ * implied, including, without limitation, any warranties or conditions
+ * of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ * PARTICULAR PURPOSE. You are solely responsible for determining the
+ * appropriateness of using or redistributing the Work and assume any
+ * risks associated with Your exercise of permissions under this License.
+ *
+ * 8. Limitation of Liability. In no event and under no legal theory,
+ * whether in tort (including negligence), contract, or otherwise,
+ * unless required by applicable law (such as deliberate and grossly
+ * negligent acts) or agreed to in writing, shall any Contributor be
+ * liable to You for damages, including any direct, indirect, special,
+ * incidental, or consequential damages of any character arising as a
+ * result of this License or out of the use or inability to use the
+ * Work (including but not limited to damages for loss of goodwill,
+ * work stoppage, computer failure or malfunction, or any and all
+ * other commercial damages or losses), even if such Contributor
+ * has been advised of the possibility of such damages.
+ *
+ * 9. Accepting Warranty or Additional Liability. While redistributing
+ * the Work or Derivative Works thereof, You may choose to offer,
+ * and charge a fee for, acceptance of support, warranty, indemnity,
+ * or other liability obligations and/or rights consistent with this
+ * License. However, in accepting such obligations, You may act only
+ * on Your own behalf and on Your sole responsibility, not on behalf
+ * of any other Contributor, and only if You agree to indemnify,
+ * defend, and hold each Contributor harmless for any liability
+ * incurred by, or claims asserted against, such Contributor by reason
+ * of your accepting any such warranty or additional liability.
+ *
+ * END OF TERMS AND CONDITIONS
+ *
+ * APPENDIX: How to apply the Apache License to your work.
+ *
+ * To apply the Apache License to your work, attach the following
+ * boilerplate notice, with the fields enclosed by brackets "[]"
+ * replaced with your own identifying information. (Don't include
+ * the brackets!) The text should be enclosed in the appropriate
+ * comment syntax for the file format. We also recommend that a
+ * file or class name and description of purpose be included on the
+ * same "printed page" as the copyright notice for easier
+ * identification within third-party archives.
+ *
+ * Copyright [yyyy] [name of copyright owner]
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
diff --git a/pdf-as-cli/src/test/resources/pdfas-config/licenses/ant/LICENSE.dom b/pdf-as-cli/src/test/resources/pdfas-config/licenses/ant/LICENSE.dom
new file mode 100644
index 00000000..2959b704
--- /dev/null
+++ b/pdf-as-cli/src/test/resources/pdfas-config/licenses/ant/LICENSE.dom
@@ -0,0 +1,71 @@
+This license came from:
+http://www.w3.org/Consortium/Legal/copyright-software-19980720
+
+
+W3C® SOFTWARE NOTICE AND LICENSE
+Copyright © 1994-2001 World
+Wide Web Consortium, <a href="http://www.w3.org/">World
+Wide Web Consortium</a>, (<a href=
+"http://www.lcs.mit.edu/">Massachusetts Institute of
+Technology</a>, <a href="http://www.inria.fr/">Institut National de
+Recherche en Informatique et en Automatique</a>, <a href=
+"http://www.keio.ac.jp/">Keio University</a>). All Rights Reserved.
+http://www.w3.org/Consortium/Legal/
+
+This W3C work (including software, documents, or other related
+items) is being provided by the copyright holders under the
+following license. By obtaining, using and/or copying this work,
+you (the licensee) agree that you have read, understood, and will
+comply with the following terms and conditions:
+Permission to use, copy, modify, and distribute this software
+and its documentation, with or without modification,  for any
+purpose and without fee or royalty is hereby granted, provided that
+you include the following on ALL copies of the software and
+documentation or portions thereof, including modifications, that
+you make:
+
+The full text of this NOTICE in a location viewable to users of
+the redistributed or derivative work.
+
+Any pre-existing intellectual property disclaimers, notices, or
+terms and conditions. If none exist, a short notice of the
+following form (hypertext is preferred, text is permitted) should
+be used within the body of any redistributed or derivative code:
+"Copyright © [$date-of-software] World Wide Web Consortium, (Massachusetts Institute of
+Technology, Institut National de
+Recherche en Informatique et en Automatique, Keio University). All Rights Reserved.
+http://www.w3.org/Consortium/Legal/"
+
+Notice of any changes or modifications to the W3C files,
+including the date changes were made. (We recommend you provide
+URIs to the location from which the code is derived.)
+
+THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND
+COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO, WARRANTIES OF
+MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE
+USE OF THE SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD
+PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.
+COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT,
+SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE
+SOFTWARE OR DOCUMENTATION.
+
+The name and trademarks of copyright holders may NOT be used in
+advertising or publicity pertaining to the software without
+specific, written prior permission. Title to copyright in this
+software and any associated documentation will at all times remain
+with copyright holders.
+____________________________________
+This formulation of W3C's notice and license became active on
+August 14 1998 so as to improve compatibility with GPL. This
+version ensures that W3C software licensing terms are no more
+restrictive than GPL and consequently W3C software may be
+distributed in GPL packages. See the older formulation for the
+policy prior to this date. Please see our Copyright FAQ for common
+questions about using materials from
+our site, including specific terms and conditions for packages like
+libwww, Amaya, and Jigsaw.
+Other questions about this notice can be
+directed to site-policy@w3.org.
+
+webmaster
diff --git a/pdf-as-cli/src/test/resources/pdfas-config/licenses/ant/LICENSE.sax b/pdf-as-cli/src/test/resources/pdfas-config/licenses/ant/LICENSE.sax
new file mode 100644
index 00000000..05bccc9a
--- /dev/null
+++ b/pdf-as-cli/src/test/resources/pdfas-config/licenses/ant/LICENSE.sax
@@ -0,0 +1,20 @@
+This license came from: http://www.megginson.com/SAX/copying.html
+ However please note future versions of SAX may be covered
+ under http://saxproject.org/?selected=pd
+
+
+This page is now out of date -- see the new SAX site at
+http://www.saxproject.org/ for more up-to-date
+releases and other information. Please change your bookmarks.
+
+
+SAX2 is Free!
+
+I hereby abandon any property rights to SAX 2.0 (the Simple API for
+XML), and release all of the SAX 2.0 source code, compiled code, and
+documentation contained in this distribution into the Public Domain.
+SAX comes with NO WARRANTY or guarantee of fitness for any
+purpose.
+
+David Megginson, david@megginson.com
+2000-05-05 \ No newline at end of file
diff --git a/pdf-as-cli/src/test/resources/pdfas-config/licenses/ant/LICENSE.xerces b/pdf-as-cli/src/test/resources/pdfas-config/licenses/ant/LICENSE.xerces
new file mode 100644
index 00000000..28282b45
--- /dev/null
+++ b/pdf-as-cli/src/test/resources/pdfas-config/licenses/ant/LICENSE.xerces
@@ -0,0 +1,56 @@
+/*
+ * The Apache Software License, Version 1.1
+ *
+ *
+ * Copyright (c) 1999-2002 The Apache Software Foundation. All rights
+ * reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * 3. The end-user documentation included with the redistribution,
+ * if any, must include the following acknowledgment:
+ * "This product includes software developed by the
+ * Apache Software Foundation (http://www.apache.org/)."
+ * Alternately, this acknowledgment may appear in the software itself,
+ * if and wherever such third-party acknowledgments normally appear.
+ *
+ * 4. The names "Xerces" and "Apache Software Foundation" must
+ * not be used to endorse or promote products derived from this
+ * software without prior written permission. For written
+ * permission, please contact apache@apache.org.
+ *
+ * 5. Products derived from this software may not be called "Apache",
+ * nor may "Apache" appear in their name, without prior written
+ * permission of the Apache Software Foundation.
+ *
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+ * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
+ * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+ * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ * ====================================================================
+ *
+ * This software consists of voluntary contributions made by many
+ * individuals on behalf of the Apache Software Foundation and was
+ * originally based on software copyright (c) 1999, International
+ * Business Machines, Inc., http://www.ibm.com. For more
+ * information on the Apache Software Foundation, please see
+ * <http://www.apache.org/>.
+ */
diff --git a/pdf-as-cli/src/test/resources/pdfas-config/licenses/apache/LICENSE b/pdf-as-cli/src/test/resources/pdfas-config/licenses/apache/LICENSE
new file mode 100644
index 00000000..75b52484
--- /dev/null
+++ b/pdf-as-cli/src/test/resources/pdfas-config/licenses/apache/LICENSE
@@ -0,0 +1,202 @@
+
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
diff --git a/pdf-as-cli/src/test/resources/pdfas-config/licenses/checkstyle/LICENSE b/pdf-as-cli/src/test/resources/pdfas-config/licenses/checkstyle/LICENSE
new file mode 100644
index 00000000..cbee875b
--- /dev/null
+++ b/pdf-as-cli/src/test/resources/pdfas-config/licenses/checkstyle/LICENSE
@@ -0,0 +1,504 @@
+ GNU LESSER GENERAL PUBLIC LICENSE
+ Version 2.1, February 1999
+
+ Copyright (C) 1991, 1999 Free Software Foundation, Inc.
+ 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+[This is the first released version of the Lesser GPL. It also counts
+ as the successor of the GNU Library Public License, version 2, hence
+ the version number 2.1.]
+
+ Preamble
+
+ The licenses for most software are designed to take away your
+freedom to share and change it. By contrast, the GNU General Public
+Licenses are intended to guarantee your freedom to share and change
+free software--to make sure the software is free for all its users.
+
+ This license, the Lesser General Public License, applies to some
+specially designated software packages--typically libraries--of the
+Free Software Foundation and other authors who decide to use it. You
+can use it too, but we suggest you first think carefully about whether
+this license or the ordinary General Public License is the better
+strategy to use in any particular case, based on the explanations below.
+
+ When we speak of free software, we are referring to freedom of use,
+not price. Our General Public Licenses are designed to make sure that
+you have the freedom to distribute copies of free software (and charge
+for this service if you wish); that you receive source code or can get
+it if you want it; that you can change the software and use pieces of
+it in new free programs; and that you are informed that you can do
+these things.
+
+ To protect your rights, we need to make restrictions that forbid
+distributors to deny you these rights or to ask you to surrender these
+rights. These restrictions translate to certain responsibilities for
+you if you distribute copies of the library or if you modify it.
+
+ For example, if you distribute copies of the library, whether gratis
+or for a fee, you must give the recipients all the rights that we gave
+you. You must make sure that they, too, receive or can get the source
+code. If you link other code with the library, you must provide
+complete object files to the recipients, so that they can relink them
+with the library after making changes to the library and recompiling
+it. And you must show them these terms so they know their rights.
+
+ We protect your rights with a two-step method: (1) we copyright the
+library, and (2) we offer you this license, which gives you legal
+permission to copy, distribute and/or modify the library.
+
+ To protect each distributor, we want to make it very clear that
+there is no warranty for the free library. Also, if the library is
+modified by someone else and passed on, the recipients should know
+that what they have is not the original version, so that the original
+author's reputation will not be affected by problems that might be
+introduced by others.
+
+ Finally, software patents pose a constant threat to the existence of
+any free program. We wish to make sure that a company cannot
+effectively restrict the users of a free program by obtaining a
+restrictive license from a patent holder. Therefore, we insist that
+any patent license obtained for a version of the library must be
+consistent with the full freedom of use specified in this license.
+
+ Most GNU software, including some libraries, is covered by the
+ordinary GNU General Public License. This license, the GNU Lesser
+General Public License, applies to certain designated libraries, and
+is quite different from the ordinary General Public License. We use
+this license for certain libraries in order to permit linking those
+libraries into non-free programs.
+
+ When a program is linked with a library, whether statically or using
+a shared library, the combination of the two is legally speaking a
+combined work, a derivative of the original library. The ordinary
+General Public License therefore permits such linking only if the
+entire combination fits its criteria of freedom. The Lesser General
+Public License permits more lax criteria for linking other code with
+the library.
+
+ We call this license the "Lesser" General Public License because it
+does Less to protect the user's freedom than the ordinary General
+Public License. It also provides other free software developers Less
+of an advantage over competing non-free programs. These disadvantages
+are the reason we use the ordinary General Public License for many
+libraries. However, the Lesser license provides advantages in certain
+special circumstances.
+
+ For example, on rare occasions, there may be a special need to
+encourage the widest possible use of a certain library, so that it becomes
+a de-facto standard. To achieve this, non-free programs must be
+allowed to use the library. A more frequent case is that a free
+library does the same job as widely used non-free libraries. In this
+case, there is little to gain by limiting the free library to free
+software only, so we use the Lesser General Public License.
+
+ In other cases, permission to use a particular library in non-free
+programs enables a greater number of people to use a large body of
+free software. For example, permission to use the GNU C Library in
+non-free programs enables many more people to use the whole GNU
+operating system, as well as its variant, the GNU/Linux operating
+system.
+
+ Although the Lesser General Public License is Less protective of the
+users' freedom, it does ensure that the user of a program that is
+linked with the Library has the freedom and the wherewithal to run
+that program using a modified version of the Library.
+
+ The precise terms and conditions for copying, distribution and
+modification follow. Pay close attention to the difference between a
+"work based on the library" and a "work that uses the library". The
+former contains code derived from the library, whereas the latter must
+be combined with the library in order to run.
+
+ GNU LESSER GENERAL PUBLIC LICENSE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+ 0. This License Agreement applies to any software library or other
+program which contains a notice placed by the copyright holder or
+other authorized party saying it may be distributed under the terms of
+this Lesser General Public License (also called "this License").
+Each licensee is addressed as "you".
+
+ A "library" means a collection of software functions and/or data
+prepared so as to be conveniently linked with application programs
+(which use some of those functions and data) to form executables.
+
+ The "Library", below, refers to any such software library or work
+which has been distributed under these terms. A "work based on the
+Library" means either the Library or any derivative work under
+copyright law: that is to say, a work containing the Library or a
+portion of it, either verbatim or with modifications and/or translated
+straightforwardly into another language. (Hereinafter, translation is
+included without limitation in the term "modification".)
+
+ "Source code" for a work means the preferred form of the work for
+making modifications to it. For a library, complete source code means
+all the source code for all modules it contains, plus any associated
+interface definition files, plus the scripts used to control compilation
+and installation of the library.
+
+ Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope. The act of
+running a program using the Library is not restricted, and output from
+such a program is covered only if its contents constitute a work based
+on the Library (independent of the use of the Library in a tool for
+writing it). Whether that is true depends on what the Library does
+and what the program that uses the Library does.
+
+ 1. You may copy and distribute verbatim copies of the Library's
+complete source code as you receive it, in any medium, provided that
+you conspicuously and appropriately publish on each copy an
+appropriate copyright notice and disclaimer of warranty; keep intact
+all the notices that refer to this License and to the absence of any
+warranty; and distribute a copy of this License along with the
+Library.
+
+ You may charge a fee for the physical act of transferring a copy,
+and you may at your option offer warranty protection in exchange for a
+fee.
+
+ 2. You may modify your copy or copies of the Library or any portion
+of it, thus forming a work based on the Library, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+ a) The modified work must itself be a software library.
+
+ b) You must cause the files modified to carry prominent notices
+ stating that you changed the files and the date of any change.
+
+ c) You must cause the whole of the work to be licensed at no
+ charge to all third parties under the terms of this License.
+
+ d) If a facility in the modified Library refers to a function or a
+ table of data to be supplied by an application program that uses
+ the facility, other than as an argument passed when the facility
+ is invoked, then you must make a good faith effort to ensure that,
+ in the event an application does not supply such function or
+ table, the facility still operates, and performs whatever part of
+ its purpose remains meaningful.
+
+ (For example, a function in a library to compute square roots has
+ a purpose that is entirely well-defined independent of the
+ application. Therefore, Subsection 2d requires that any
+ application-supplied function or table used by this function must
+ be optional: if the application does not supply it, the square
+ root function must still compute square roots.)
+
+These requirements apply to the modified work as a whole. If
+identifiable sections of that work are not derived from the Library,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works. But when you
+distribute the same sections as part of a whole which is a work based
+on the Library, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote
+it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Library.
+
+In addition, mere aggregation of another work not based on the Library
+with the Library (or with a work based on the Library) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+ 3. You may opt to apply the terms of the ordinary GNU General Public
+License instead of this License to a given copy of the Library. To do
+this, you must alter all the notices that refer to this License, so
+that they refer to the ordinary GNU General Public License, version 2,
+instead of to this License. (If a newer version than version 2 of the
+ordinary GNU General Public License has appeared, then you can specify
+that version instead if you wish.) Do not make any other change in
+these notices.
+
+ Once this change is made in a given copy, it is irreversible for
+that copy, so the ordinary GNU General Public License applies to all
+subsequent copies and derivative works made from that copy.
+
+ This option is useful when you wish to copy part of the code of
+the Library into a program that is not a library.
+
+ 4. You may copy and distribute the Library (or a portion or
+derivative of it, under Section 2) in object code or executable form
+under the terms of Sections 1 and 2 above provided that you accompany
+it with the complete corresponding machine-readable source code, which
+must be distributed under the terms of Sections 1 and 2 above on a
+medium customarily used for software interchange.
+
+ If distribution of object code is made by offering access to copy
+from a designated place, then offering equivalent access to copy the
+source code from the same place satisfies the requirement to
+distribute the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+ 5. A program that contains no derivative of any portion of the
+Library, but is designed to work with the Library by being compiled or
+linked with it, is called a "work that uses the Library". Such a
+work, in isolation, is not a derivative work of the Library, and
+therefore falls outside the scope of this License.
+
+ However, linking a "work that uses the Library" with the Library
+creates an executable that is a derivative of the Library (because it
+contains portions of the Library), rather than a "work that uses the
+library". The executable is therefore covered by this License.
+Section 6 states terms for distribution of such executables.
+
+ When a "work that uses the Library" uses material from a header file
+that is part of the Library, the object code for the work may be a
+derivative work of the Library even though the source code is not.
+Whether this is true is especially significant if the work can be
+linked without the Library, or if the work is itself a library. The
+threshold for this to be true is not precisely defined by law.
+
+ If such an object file uses only numerical parameters, data
+structure layouts and accessors, and small macros and small inline
+functions (ten lines or less in length), then the use of the object
+file is unrestricted, regardless of whether it is legally a derivative
+work. (Executables containing this object code plus portions of the
+Library will still fall under Section 6.)
+
+ Otherwise, if the work is a derivative of the Library, you may
+distribute the object code for the work under the terms of Section 6.
+Any executables containing that work also fall under Section 6,
+whether or not they are linked directly with the Library itself.
+
+ 6. As an exception to the Sections above, you may also combine or
+link a "work that uses the Library" with the Library to produce a
+work containing portions of the Library, and distribute that work
+under terms of your choice, provided that the terms permit
+modification of the work for the customer's own use and reverse
+engineering for debugging such modifications.
+
+ You must give prominent notice with each copy of the work that the
+Library is used in it and that the Library and its use are covered by
+this License. You must supply a copy of this License. If the work
+during execution displays copyright notices, you must include the
+copyright notice for the Library among them, as well as a reference
+directing the user to the copy of this License. Also, you must do one
+of these things:
+
+ a) Accompany the work with the complete corresponding
+ machine-readable source code for the Library including whatever
+ changes were used in the work (which must be distributed under
+ Sections 1 and 2 above); and, if the work is an executable linked
+ with the Library, with the complete machine-readable "work that
+ uses the Library", as object code and/or source code, so that the
+ user can modify the Library and then relink to produce a modified
+ executable containing the modified Library. (It is understood
+ that the user who changes the contents of definitions files in the
+ Library will not necessarily be able to recompile the application
+ to use the modified definitions.)
+
+ b) Use a suitable shared library mechanism for linking with the
+ Library. A suitable mechanism is one that (1) uses at run time a
+ copy of the library already present on the user's computer system,
+ rather than copying library functions into the executable, and (2)
+ will operate properly with a modified version of the library, if
+ the user installs one, as long as the modified version is
+ interface-compatible with the version that the work was made with.
+
+ c) Accompany the work with a written offer, valid for at
+ least three years, to give the same user the materials
+ specified in Subsection 6a, above, for a charge no more
+ than the cost of performing this distribution.
+
+ d) If distribution of the work is made by offering access to copy
+ from a designated place, offer equivalent access to copy the above
+ specified materials from the same place.
+
+ e) Verify that the user has already received a copy of these
+ materials or that you have already sent this user a copy.
+
+ For an executable, the required form of the "work that uses the
+Library" must include any data and utility programs needed for
+reproducing the executable from it. However, as a special exception,
+the materials to be distributed need not include anything that is
+normally distributed (in either source or binary form) with the major
+components (compiler, kernel, and so on) of the operating system on
+which the executable runs, unless that component itself accompanies
+the executable.
+
+ It may happen that this requirement contradicts the license
+restrictions of other proprietary libraries that do not normally
+accompany the operating system. Such a contradiction means you cannot
+use both them and the Library together in an executable that you
+distribute.
+
+ 7. You may place library facilities that are a work based on the
+Library side-by-side in a single library together with other library
+facilities not covered by this License, and distribute such a combined
+library, provided that the separate distribution of the work based on
+the Library and of the other library facilities is otherwise
+permitted, and provided that you do these two things:
+
+ a) Accompany the combined library with a copy of the same work
+ based on the Library, uncombined with any other library
+ facilities. This must be distributed under the terms of the
+ Sections above.
+
+ b) Give prominent notice with the combined library of the fact
+ that part of it is a work based on the Library, and explaining
+ where to find the accompanying uncombined form of the same work.
+
+ 8. You may not copy, modify, sublicense, link with, or distribute
+the Library except as expressly provided under this License. Any
+attempt otherwise to copy, modify, sublicense, link with, or
+distribute the Library is void, and will automatically terminate your
+rights under this License. However, parties who have received copies,
+or rights, from you under this License will not have their licenses
+terminated so long as such parties remain in full compliance.
+
+ 9. You are not required to accept this License, since you have not
+signed it. However, nothing else grants you permission to modify or
+distribute the Library or its derivative works. These actions are
+prohibited by law if you do not accept this License. Therefore, by
+modifying or distributing the Library (or any work based on the
+Library), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Library or works based on it.
+
+ 10. Each time you redistribute the Library (or any work based on the
+Library), the recipient automatically receives a license from the
+original licensor to copy, distribute, link with or modify the Library
+subject to these terms and conditions. You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties with
+this License.
+
+ 11. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Library at all. For example, if a patent
+license would not permit royalty-free redistribution of the Library by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Library.
+
+If any portion of this section is held invalid or unenforceable under any
+particular circumstance, the balance of the section is intended to apply,
+and the section as a whole is intended to apply in other circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system which is
+implemented by public license practices. Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+ 12. If the distribution and/or use of the Library is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Library under this License may add
+an explicit geographical distribution limitation excluding those countries,
+so that distribution is permitted only in or among countries not thus
+excluded. In such case, this License incorporates the limitation as if
+written in the body of this License.
+
+ 13. The Free Software Foundation may publish revised and/or new
+versions of the Lesser General Public License from time to time.
+Such new versions will be similar in spirit to the present version,
+but may differ in detail to address new problems or concerns.
+
+Each version is given a distinguishing version number. If the Library
+specifies a version number of this License which applies to it and
+"any later version", you have the option of following the terms and
+conditions either of that version or of any later version published by
+the Free Software Foundation. If the Library does not specify a
+license version number, you may choose any version ever published by
+the Free Software Foundation.
+
+ 14. If you wish to incorporate parts of the Library into other free
+programs whose distribution conditions are incompatible with these,
+write to the author to ask for permission. For software which is
+copyrighted by the Free Software Foundation, write to the Free
+Software Foundation; we sometimes make exceptions for this. Our
+decision will be guided by the two goals of preserving the free status
+of all derivatives of our free software and of promoting the sharing
+and reuse of software generally.
+
+ NO WARRANTY
+
+ 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
+WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
+EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
+OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
+KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
+LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
+THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
+WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
+AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
+FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
+CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
+LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
+RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
+FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
+SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+DAMAGES.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Libraries
+
+ If you develop a new library, and you want it to be of the greatest
+possible use to the public, we recommend making it free software that
+everyone can redistribute and change. You can do so by permitting
+redistribution under these terms (or, alternatively, under the terms of the
+ordinary General Public License).
+
+ To apply these terms, attach the following notices to the library. It is
+safest to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least the
+"copyright" line and a pointer to where the full notice is found.
+
+ <one line to give the library's name and a brief idea of what it does.>
+ Copyright (C) <year> <name of author>
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this library; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
+Also add information on how to contact you by electronic and paper mail.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the library, if
+necessary. Here is a sample; alter the names:
+
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the
+ library `Frob' (a library for tweaking knobs) written by James Random Hacker.
+
+ <signature of Ty Coon>, 1 April 1990
+ Ty Coon, President of Vice
+
+That's all there is to it!
+
+
diff --git a/pdf-as-cli/src/test/resources/pdfas-config/licenses/checkstyle/LICENSE.apache b/pdf-as-cli/src/test/resources/pdfas-config/licenses/checkstyle/LICENSE.apache
new file mode 100644
index 00000000..3c0a9367
--- /dev/null
+++ b/pdf-as-cli/src/test/resources/pdfas-config/licenses/checkstyle/LICENSE.apache
@@ -0,0 +1,60 @@
+/*
+ * $Header: /filer/cvs-repository/pdf-as/command-line/licenses/checkstyle/LICENSE.apache,v 1.1 2006/06/14 10:05:39 wlackner Exp $
+ * $Revision: 1.1 $
+ * $Date: 2006/06/14 10:05:39 $
+ *
+ * ====================================================================
+ *
+ * The Apache Software License, Version 1.1
+ *
+ * Copyright (c) 1999 The Apache Software Foundation. All rights
+ * reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * 3. The end-user documentation included with the redistribution, if
+ * any, must include the following acknowlegement:
+ * "This product includes software developed by the
+ * Apache Software Foundation (http://www.apache.org/)."
+ * Alternately, this acknowlegement may appear in the software itself,
+ * if and wherever such third-party acknowlegements normally appear.
+ *
+ * 4. The names "The Jakarta Project", "Jakarta-Regexp", and "Apache Software
+ * Foundation" must not be used to endorse or promote products derived
+ * from this software without prior written permission. For written
+ * permission, please contact apache@apache.org.
+ *
+ * 5. Products derived from this software may not be called "Apache"
+ * nor may "Apache" appear in their names without prior written
+ * permission of the Apache Group.
+ *
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+ * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
+ * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+ * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ * ====================================================================
+ *
+ * This software consists of voluntary contributions made by many
+ * individuals on behalf of the Apache Software Foundation. For more
+ * information on the Apache Software Foundation, please see
+ * <http://www.apache.org/>.
+ *
+ */
diff --git a/pdf-as-cli/src/test/resources/pdfas-config/licenses/dejavu-font/LICENSE b/pdf-as-cli/src/test/resources/pdfas-config/licenses/dejavu-font/LICENSE
new file mode 100644
index 00000000..254e2cc4
--- /dev/null
+++ b/pdf-as-cli/src/test/resources/pdfas-config/licenses/dejavu-font/LICENSE
@@ -0,0 +1,99 @@
+Fonts are (c) Bitstream (see below). DejaVu changes are in public domain.
+Glyphs imported from Arev fonts are (c) Tavmjong Bah (see below)
+
+Bitstream Vera Fonts Copyright
+------------------------------
+
+Copyright (c) 2003 by Bitstream, Inc. All Rights Reserved. Bitstream Vera is
+a trademark of Bitstream, Inc.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of the fonts accompanying this license ("Fonts") and associated
+documentation files (the "Font Software"), to reproduce and distribute the
+Font Software, including without limitation the rights to use, copy, merge,
+publish, distribute, and/or sell copies of the Font Software, and to permit
+persons to whom the Font Software is furnished to do so, subject to the
+following conditions:
+
+The above copyright and trademark notices and this permission notice shall
+be included in all copies of one or more of the Font Software typefaces.
+
+The Font Software may be modified, altered, or added to, and in particular
+the designs of glyphs or characters in the Fonts may be modified and
+additional glyphs or characters may be added to the Fonts, only if the fonts
+are renamed to names not containing either the words "Bitstream" or the word
+"Vera".
+
+This License becomes null and void to the extent applicable to Fonts or Font
+Software that has been modified and is distributed under the "Bitstream
+Vera" names.
+
+The Font Software may be sold as part of a larger software package but no
+copy of one or more of the Font Software typefaces may be sold by itself.
+
+THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT,
+TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL BITSTREAM OR THE GNOME
+FOUNDATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING
+ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES,
+WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
+THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE
+FONT SOFTWARE.
+
+Except as contained in this notice, the names of Gnome, the Gnome
+Foundation, and Bitstream Inc., shall not be used in advertising or
+otherwise to promote the sale, use or other dealings in this Font Software
+without prior written authorization from the Gnome Foundation or Bitstream
+Inc., respectively. For further information, contact: fonts at gnome dot
+org.
+
+Arev Fonts Copyright
+------------------------------
+
+Copyright (c) 2006 by Tavmjong Bah. All Rights Reserved.
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of the fonts accompanying this license ("Fonts") and
+associated documentation files (the "Font Software"), to reproduce
+and distribute the modifications to the Bitstream Vera Font Software,
+including without limitation the rights to use, copy, merge, publish,
+distribute, and/or sell copies of the Font Software, and to permit
+persons to whom the Font Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright and trademark notices and this permission notice
+shall be included in all copies of one or more of the Font Software
+typefaces.
+
+The Font Software may be modified, altered, or added to, and in
+particular the designs of glyphs or characters in the Fonts may be
+modified and additional glyphs or characters may be added to the
+Fonts, only if the fonts are renamed to names not containing either
+the words "Tavmjong Bah" or the word "Arev".
+
+This License becomes null and void to the extent applicable to Fonts
+or Font Software that has been modified and is distributed under the
+"Tavmjong Bah Arev" names.
+
+The Font Software may be sold as part of a larger software package but
+no copy of one or more of the Font Software typefaces may be sold by
+itself.
+
+THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
+OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL
+TAVMJONG BAH BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
+DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
+OTHER DEALINGS IN THE FONT SOFTWARE.
+
+Except as contained in this notice, the name of Tavmjong Bah shall not
+be used in advertising or otherwise to promote the sale, use or other
+dealings in this Font Software without prior written authorization
+from Tavmjong Bah. For further information, contact: tavmjong @ free
+. fr.
+
+$Id: LICENSE 2133 2007-11-28 02:46:28Z lechimp $
diff --git a/pdf-as-cli/src/test/resources/pdfas-config/licenses/fonts/BitStream.txt b/pdf-as-cli/src/test/resources/pdfas-config/licenses/fonts/BitStream.txt
new file mode 100644
index 00000000..8e56be2d
--- /dev/null
+++ b/pdf-as-cli/src/test/resources/pdfas-config/licenses/fonts/BitStream.txt
@@ -0,0 +1,17 @@
+Copyright (c) 2003 by Bitstream, Inc.
+All Rights Reserved.
+Bitstream Vera is a trademark of Bitstream, Inc.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of the fonts accompanying this license ("Fonts") and associated documentation files (the "Font Software"), to reproduce and distribute the Font Software, including without limitation the rights to use, copy, merge, publish, distribute, and/or sell copies of the Font Software, and to permit persons to whom the Font Software is furnished to do so, subject to the following conditions:
+
+The above copyright and trademark notices and this permission notice shall be included in all copies of one or more of the Font Software typefaces.
+
+The Font Software may be modified, altered, or added to, and in particular the designs of glyphs or characters in the Fonts may be modified and additional glyphs or characters may be added to the Fonts, only if the fonts are renamed to names not containing either the words "Bitstream" or the word "Vera".
+
+This License becomes null and void to the extent applicable to Fonts or Font Software that has been modified and is distributed under the "Bitstream Vera" names.
+
+The Font Software may be sold as part of a larger software package but no copy of one or more of the Font Software typefaces may be sold by itself.
+
+THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL BITSTREAM OR THE GNOME FOUNDATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.
+
+Except as contained in this notice, the names of Gnome, the Gnome Foundation, and Bitstream Inc., shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Font Software without prior written authorization from the Gnome Foundation or Bitstream Inc., respectively. For further information, contact: fonts at gnome dot org.http://www.bitstream.com \ No newline at end of file
diff --git a/pdf-as-cli/src/test/resources/pdfas-config/licenses/ikvm/LICENSE b/pdf-as-cli/src/test/resources/pdfas-config/licenses/ikvm/LICENSE
new file mode 100644
index 00000000..2fbfb21f
--- /dev/null
+++ b/pdf-as-cli/src/test/resources/pdfas-config/licenses/ikvm/LICENSE
@@ -0,0 +1,34 @@
+IMPORTANT NOTICE
+
+ Some files in this distribution are part of GNU Classpath and have a
+ different license. This applies in particular to:
+ - IKVM.GNU.Classpath.dll
+ - some of the *.java files (see each file header for license)
+
+ See http://www.gnu.org/software/classpath/ for information on the
+ GNU Classpath license.
+
+-----------------------------------------------------------------------------
+
+ Copyright (C) 2002, 2003, 2004 Jeroen Frijters
+
+ This software is provided 'as-is', without any express or implied
+ warranty. In no event will the authors be held liable for any damages
+ arising from the use of this software.
+
+ Permission is granted to anyone to use this software for any purpose,
+ including commercial applications, and to alter it and redistribute it
+ freely, subject to the following restrictions:
+
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ 3. This notice may not be removed or altered from any source distribution.
+
+ Jeroen Frijters
+ jeroen@frijters.net
+
+-----------------------------------------------------------------------------
diff --git a/pdf-as-cli/src/test/resources/pdfas-config/licenses/junit/cpl-v10.html b/pdf-as-cli/src/test/resources/pdfas-config/licenses/junit/cpl-v10.html
new file mode 100644
index 00000000..19009948
--- /dev/null
+++ b/pdf-as-cli/src/test/resources/pdfas-config/licenses/junit/cpl-v10.html
@@ -0,0 +1,125 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<HTML>
+<HEAD>
+<TITLE>Common Public License - v 1.0</TITLE>
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+</HEAD>
+
+<BODY BGCOLOR="#FFFFFF" VLINK="#800000">
+
+
+<P ALIGN="CENTER"><B>Common Public License - v 1.0</B>
+<P><B></B><FONT SIZE="3"></FONT>
+<P><FONT SIZE="3"></FONT><FONT SIZE="2">THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS COMMON PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.</FONT>
+<P><FONT SIZE="2"></FONT>
+<P><FONT SIZE="2"><B>1. DEFINITIONS</B></FONT>
+<P><FONT SIZE="2">"Contribution" means:</FONT>
+
+<UL><FONT SIZE="2">a) in the case of the initial Contributor, the initial code and documentation distributed under this Agreement, and<BR CLEAR="LEFT">
+b) in the case of each subsequent Contributor:</FONT></UL>
+
+
+<UL><FONT SIZE="2">i) changes to the Program, and</FONT></UL>
+
+
+<UL><FONT SIZE="2">ii) additions to the Program;</FONT></UL>
+
+
+<UL><FONT SIZE="2">where such changes and/or additions to the Program originate from and are distributed by that particular Contributor. </FONT><FONT SIZE="2">A Contribution 'originates' from a Contributor if it was added to the Program by such Contributor itself or anyone acting on such Contributor's behalf. </FONT><FONT SIZE="2">Contributions do not include additions to the Program which: (i) are separate modules of software distributed in conjunction with the Program under their own license agreement, and (ii) are not derivative works of the Program. </FONT></UL>
+
+<P><FONT SIZE="2"></FONT>
+<P><FONT SIZE="2">"Contributor" means any person or entity that distributes the Program.</FONT>
+<P><FONT SIZE="2"></FONT><FONT SIZE="2"></FONT>
+<P><FONT SIZE="2">"Licensed Patents " mean patent claims licensable by a Contributor which are necessarily infringed by the use or sale of its Contribution alone or when combined with the Program. </FONT>
+<P><FONT SIZE="2"></FONT><FONT SIZE="2"></FONT>
+<P><FONT SIZE="2"></FONT><FONT SIZE="2">"Program" means the Contributions distributed in accordance with this Agreement.</FONT>
+<P><FONT SIZE="2"></FONT>
+<P><FONT SIZE="2">"Recipient" means anyone who receives the Program under this Agreement, including all Contributors.</FONT>
+<P><FONT SIZE="2"><B></B></FONT>
+<P><FONT SIZE="2"><B>2. GRANT OF RIGHTS</B></FONT>
+
+<UL><FONT SIZE="2"></FONT><FONT SIZE="2">a) </FONT><FONT SIZE="2">Subject to the terms of this Agreement, each Contributor hereby grants</FONT><FONT SIZE="2"> Recipient a non-exclusive, worldwide, royalty-free copyright license to</FONT><FONT SIZE="2" COLOR="#FF0000"> </FONT><FONT SIZE="2">reproduce, prepare derivative works of, publicly display, publicly perform, distribute and sublicense the Contribution of such Contributor, if any, and such derivative works, in source code and object code form.</FONT></UL>
+
+
+<UL><FONT SIZE="2"></FONT></UL>
+
+
+<UL><FONT SIZE="2"></FONT><FONT SIZE="2">b) Subject to the terms of this Agreement, each Contributor hereby grants </FONT><FONT SIZE="2">Recipient a non-exclusive, worldwide,</FONT><FONT SIZE="2" COLOR="#008000"> </FONT><FONT SIZE="2">royalty-free patent license under Licensed Patents to make, use, sell, offer to sell, import and otherwise transfer the Contribution of such Contributor, if any, in source code and object code form. This patent license shall apply to the combination of the Contribution and the Program if, at the time the Contribution is added by the Contributor, such addition of the Contribution causes such combination to be covered by the Licensed Patents. The patent license shall not apply to any other combinations which include the Contribution. No hardware per se is licensed hereunder. </FONT></UL>
+
+
+<UL><FONT SIZE="2"></FONT></UL>
+
+
+<UL><FONT SIZE="2">c) Recipient understands that although each Contributor grants the licenses to its Contributions set forth herein, no assurances are provided by any Contributor that the Program does not infringe the patent or other intellectual property rights of any other entity. Each Contributor disclaims any liability to Recipient for claims brought by any other entity based on infringement of intellectual property rights or otherwise. As a condition to exercising the rights and licenses granted hereunder, each Recipient hereby assumes sole responsibility to secure any other intellectual property rights needed, if any. For example, if a third party patent license is required to allow Recipient to distribute the Program, it is Recipient's responsibility to acquire that license before distributing the Program.</FONT></UL>
+
+
+<UL><FONT SIZE="2"></FONT></UL>
+
+
+<UL><FONT SIZE="2">d) Each Contributor represents that to its knowledge it has sufficient copyright rights in its Contribution, if any, to grant the copyright license set forth in this Agreement. </FONT></UL>
+
+
+<UL><FONT SIZE="2"></FONT></UL>
+
+<P><FONT SIZE="2"><B>3. REQUIREMENTS</B></FONT>
+<P><FONT SIZE="2"><B></B>A Contributor may choose to distribute the Program in object code form under its own license agreement, provided that:</FONT>
+
+<UL><FONT SIZE="2">a) it complies with the terms and conditions of this Agreement; and</FONT></UL>
+
+
+<UL><FONT SIZE="2">b) its license agreement:</FONT></UL>
+
+
+<UL><FONT SIZE="2">i) effectively disclaims</FONT><FONT SIZE="2"> on behalf of all Contributors all warranties and conditions, express and implied, including warranties or conditions of title and non-infringement, and implied warranties or conditions of merchantability and fitness for a particular purpose; </FONT></UL>
+
+
+<UL><FONT SIZE="2">ii) effectively excludes on behalf of all Contributors all liability for damages, including direct, indirect, special, incidental and consequential damages, such as lost profits; </FONT></UL>
+
+
+<UL><FONT SIZE="2">iii)</FONT><FONT SIZE="2"> states that any provisions which differ from this Agreement are offered by that Contributor alone and not by any other party; and</FONT></UL>
+
+
+<UL><FONT SIZE="2">iv) states that source code for the Program is available from such Contributor, and informs licensees how to obtain it in a reasonable manner on or through a medium customarily used for software exchange.</FONT><FONT SIZE="2" COLOR="#0000FF"> </FONT><FONT SIZE="2" COLOR="#FF0000"></FONT></UL>
+
+
+<UL><FONT SIZE="2" COLOR="#FF0000"></FONT><FONT SIZE="2"></FONT></UL>
+
+<P><FONT SIZE="2">When the Program is made available in source code form:</FONT>
+
+<UL><FONT SIZE="2">a) it must be made available under this Agreement; and </FONT></UL>
+
+
+<UL><FONT SIZE="2">b) a copy of this Agreement must be included with each copy of the Program. </FONT></UL>
+
+<P><FONT SIZE="2"></FONT><FONT SIZE="2" COLOR="#0000FF"><STRIKE></STRIKE></FONT>
+<P><FONT SIZE="2" COLOR="#0000FF"><STRIKE></STRIKE></FONT><FONT SIZE="2">Contributors may not remove or alter any copyright notices contained within the Program. </FONT>
+<P><FONT SIZE="2"></FONT>
+<P><FONT SIZE="2">Each Contributor must identify itself as the originator of its Contribution, if any, in a manner that reasonably allows subsequent Recipients to identify the originator of the Contribution. </FONT>
+<P><FONT SIZE="2"></FONT>
+<P><FONT SIZE="2"><B>4. COMMERCIAL DISTRIBUTION</B></FONT>
+<P><FONT SIZE="2">Commercial distributors of software may accept certain responsibilities with respect to end users, business partners and the like. While this license is intended to facilitate the commercial use of the Program, the Contributor who includes the Program in a commercial product offering should do so in a manner which does not create potential liability for other Contributors. Therefore, if a Contributor includes the Program in a commercial product offering, such Contributor ("Commercial Contributor") hereby agrees to defend and indemnify every other Contributor ("Indemnified Contributor") against any losses, damages and costs (collectively "Losses") arising from claims, lawsuits and other legal actions brought by a third party against the Indemnified Contributor to the extent caused by the acts or omissions of such Commercial Contributor in connection with its distribution of the Program in a commercial product offering. The obligations in this section do not apply to any claims or Losses relating to any actual or alleged intellectual property infringement. In order to qualify, an Indemnified Contributor must: a) promptly notify the Commercial Contributor in writing of such claim, and b) allow the Commercial Contributor to control, and cooperate with the Commercial Contributor in, the defense and any related settlement negotiations. The Indemnified Contributor may participate in any such claim at its own expense.</FONT>
+<P><FONT SIZE="2"></FONT>
+<P><FONT SIZE="2">For example, a Contributor might include the Program in a commercial product offering, Product X. That Contributor is then a Commercial Contributor. If that Commercial Contributor then makes performance claims, or offers warranties related to Product X, those performance claims and warranties are such Commercial Contributor's responsibility alone. Under this section, the Commercial Contributor would have to defend claims against the other Contributors related to those performance claims and warranties, and if a court requires any other Contributor to pay any damages as a result, the Commercial Contributor must pay those damages.</FONT>
+<P><FONT SIZE="2"></FONT><FONT SIZE="2" COLOR="#0000FF"></FONT>
+<P><FONT SIZE="2" COLOR="#0000FF"></FONT><FONT SIZE="2"><B>5. NO WARRANTY</B></FONT>
+<P><FONT SIZE="2">EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is</FONT><FONT SIZE="2"> solely responsible for determining the appropriateness of using and distributing </FONT><FONT SIZE="2">the Program</FONT><FONT SIZE="2"> and assumes all risks associated with its exercise of rights under this Agreement</FONT><FONT SIZE="2">, including but not limited to the risks and costs of program errors, compliance with applicable laws, damage to or loss of data, </FONT><FONT SIZE="2">programs or equipment, and unavailability or interruption of operations</FONT><FONT SIZE="2">. </FONT><FONT SIZE="2"></FONT>
+<P><FONT SIZE="2"></FONT>
+<P><FONT SIZE="2"></FONT><FONT SIZE="2"><B>6. DISCLAIMER OF LIABILITY</B></FONT>
+<P><FONT SIZE="2"></FONT><FONT SIZE="2">EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES </FONT><FONT SIZE="2">(INCLUDING WITHOUT LIMITATION LOST PROFITS),</FONT><FONT SIZE="2"> HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.</FONT>
+<P><FONT SIZE="2"></FONT><FONT SIZE="2"></FONT>
+<P><FONT SIZE="2"><B>7. GENERAL</B></FONT>
+<P><FONT SIZE="2"></FONT><FONT SIZE="2">If any provision of this Agreement is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this Agreement, and without further action by the parties hereto, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable.</FONT>
+<P><FONT SIZE="2"></FONT>
+<P><FONT SIZE="2">If Recipient institutes patent litigation against a Contributor with respect to a patent applicable to software (including a cross-claim or counterclaim in a lawsuit), then any patent licenses granted by that Contributor to such Recipient under this Agreement shall terminate as of the date such litigation is filed. In addition, if Recipient institutes patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Program itself (excluding combinations of the Program with other software or hardware) infringes such Recipient's patent(s), then such Recipient's rights granted under Section 2(b) shall terminate as of the date such litigation is filed. </FONT><FONT SIZE="2"></FONT>
+<P><FONT SIZE="2"></FONT>
+<P><FONT SIZE="2">All Recipient's rights under this Agreement shall terminate if it fails to comply with any of the material terms or conditions of this Agreement and does not cure such failure in a reasonable period of time after becoming aware of such noncompliance. If all Recipient's rights under this Agreement terminate, Recipient agrees to cease use and distribution of the Program as soon as reasonably practicable. However, Recipient's obligations under this Agreement and any licenses granted by Recipient relating to the Program shall continue and survive. </FONT><FONT SIZE="2"></FONT>
+<P><FONT SIZE="2"></FONT>
+<P><FONT SIZE="2"></FONT><FONT SIZE="2">Everyone is permitted to copy and distribute copies of this Agreement, but in order to avoid inconsistency the Agreement is copyrighted and may only be modified in the following manner. The Agreement Steward reserves the right to </FONT><FONT SIZE="2">publish new versions (including revisions) of this Agreement from time to </FONT><FONT SIZE="2">time. No one other than the Agreement Steward has the right to modify this Agreement. IBM is the initial Agreement Steward. IBM may assign the responsibility to serve as the Agreement Steward to a suitable separate entity. </FONT><FONT SIZE="2">Each new version of the Agreement will be given a distinguishing version number. The Program (including Contributions) may always be distributed subject to the version of the Agreement under which it was received. In addition, after a new version of the Agreement is published, Contributor may elect to distribute the Program (including its Contributions) under the new </FONT><FONT SIZE="2">version. </FONT><FONT SIZE="2">Except as expressly stated in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to the intellectual property of any Contributor under this Agreement, whether expressly, </FONT><FONT SIZE="2">by implication, estoppel or otherwise</FONT><FONT SIZE="2">.</FONT><FONT SIZE="2"> All rights in the Program not expressly granted under this Agreement are reserved.</FONT>
+<P><FONT SIZE="2"></FONT>
+<P><FONT SIZE="2">This Agreement is governed by the laws of the State of New York and the intellectual property laws of the United States of America. No party to this Agreement will bring a legal action under this Agreement more than one year after the cause of action arose. Each party waives its rights to a jury trial in any resulting litigation.</FONT>
+<P><FONT SIZE="2"></FONT><FONT SIZE="2"></FONT>
+<P><FONT SIZE="2"></FONT>
+
+</BODY>
+
+</HTML> \ No newline at end of file
diff --git a/pdf-as-cli/src/test/resources/pdfas-config/licenses/log4j/LICENSE.txt b/pdf-as-cli/src/test/resources/pdfas-config/licenses/log4j/LICENSE.txt
new file mode 100644
index 00000000..030564fc
--- /dev/null
+++ b/pdf-as-cli/src/test/resources/pdfas-config/licenses/log4j/LICENSE.txt
@@ -0,0 +1,48 @@
+/*
+ * ============================================================================
+ * The Apache Software License, Version 1.1
+ * ============================================================================
+ *
+ * Copyright (C) 1999 The Apache Software Foundation. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modifica-
+ * tion, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice,
+ * this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ *
+ * 3. The end-user documentation included with the redistribution, if any, must
+ * include the following acknowledgment: "This product includes software
+ * developed by the Apache Software Foundation (http://www.apache.org/)."
+ * Alternately, this acknowledgment may appear in the software itself, if
+ * and wherever such third-party acknowledgments normally appear.
+ *
+ * 4. The names "log4j" and "Apache Software Foundation" must not be used to
+ * endorse or promote products derived from this software without prior
+ * written permission. For written permission, please contact
+ * apache@apache.org.
+ *
+ * 5. Products derived from this software may not be called "Apache", nor may
+ * "Apache" appear in their name, without prior written permission of the
+ * Apache Software Foundation.
+ *
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
+ * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ * APACHE SOFTWARE FOUNDATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLU-
+ * DING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+ * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
+ * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ * This software consists of voluntary contributions made by many individuals
+ * on behalf of the Apache Software Foundation. For more information on the
+ * Apache Software Foundation, please see <http://www.apache.org/>.
+ *
+ */
diff --git a/pdf-as-cli/src/test/resources/pdfas-config/licenses/lucene/LICENSE.txt b/pdf-as-cli/src/test/resources/pdfas-config/licenses/lucene/LICENSE.txt
new file mode 100644
index 00000000..ad8d37e4
--- /dev/null
+++ b/pdf-as-cli/src/test/resources/pdfas-config/licenses/lucene/LICENSE.txt
@@ -0,0 +1,15 @@
+/**
+ * Copyright 2004 The Apache Software Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
diff --git a/pdf-as-cli/src/test/resources/pdfas-config/licenses/pdfbox/LICENSE b/pdf-as-cli/src/test/resources/pdfas-config/licenses/pdfbox/LICENSE
new file mode 100644
index 00000000..761bc80f
--- /dev/null
+++ b/pdf-as-cli/src/test/resources/pdfas-config/licenses/pdfbox/LICENSE
@@ -0,0 +1,25 @@
+Copyright (c) 2003-2005, www.pdfbox.org
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+2. Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+3. Neither the name of pdfbox; nor the names of its
+ contributors may be used to endorse or promote products derived from this
+ software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY
+DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
+ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. \ No newline at end of file
diff --git a/pdf-as-cli/src/test/resources/pdfas-config/licenses/sun-jaicmm/JAI-LICENSE b/pdf-as-cli/src/test/resources/pdfas-config/licenses/sun-jaicmm/JAI-LICENSE
new file mode 100644
index 00000000..c56029e3
--- /dev/null
+++ b/pdf-as-cli/src/test/resources/pdfas-config/licenses/sun-jaicmm/JAI-LICENSE
@@ -0,0 +1,283 @@
+Sun Microsystems, Inc.
+
+Binary Code License Agreement
+
+
+
+JAVA ADVANCED IMAGING API, VERSION 1.1.2
+
+
+
+READ THE TERMS OF THIS AGREEMENT AND ANY PROVIDED
+SUPPLEMENTAL LICENS E TERMS (COLLECTIVELY "AGREEMENT")
+CAREFULLY BEFORE OPENING THE SOFTW ARE MEDIA PACKAGE. BY
+OPENING THE SOFTWARE MEDIA PACKAGE, YOU AGRE E TO THE TERMS
+OF THIS AGREEMENT. IF YOU ARE ACCESSING THE SOFTWAR E
+ELECTRONICALLY, INDICATE YOUR ACCEPTANCE OF THESE TERMS BY
+SELECTIN G THE "ACCEPT" BUTTON AT THE END OF THIS
+AGREEMENT. IF YOU DO NOT AGREE TO ALL THESE TERMS,
+PROMPTLY RETURN THE UNUSED SOFTWARE TO YOUR
+ PLACE OF PURCHASE FOR A REFUND OR, IF THE SOFTWARE IS
+ ACCESSED ELECT RONICALLY, SELECT THE "DECLINE" BUTTON AT
+THE END OF THIS AGREEMENT.
+
+
+
+
+1. LICENSE TO USE. Sun grants you a non-exclusive and
+non-trans ferable license for the internal use only of the
+accompanying softwar e and documentation and any error
+corrections provided by Sun (collec tively "Software"), by
+the number of users and the class of computer hardware for
+which the corresponding fee has been paid.
+
+
+
+2. RESTRICTIONS. Software is confidential and
+copyrighted. Titl e to Software and all associated
+intellectual property rights is reta ined by Sun and/or its
+licensors. Except as specifically authorize d in any
+Supplemental License Terms, you may not make copies of
+Softw are, other than a single copy of Software for
+archival purposes. U nless enforcement is prohibited by
+applicable law, you may not modify , decompile, or reverse
+engineer Software. Licensee acknowledges t hat Software is
+not designed or intended for use in the design, const
+ruction, operation or maintenance of any nuclear facility.
+Sun Micros ystems, Inc. disclaims any express or implied
+warranty of fitness for
+ such uses. No right, title or interest in or to any
+ trademark, s ervice mark, logo or trade name of Sun or its
+licensors is granted un der this Agreement.
+
+
+
+3. LIMITED WARRANTY. Sun warrants to you that for a
+period of nin ety (90) days from the date of purchase, as
+evidenced by a copy of th e receipt, the media on which
+Software is furnished (if any) will be free of defects in
+materials and workmanship under normal use. Exc ept for
+the foregoing, Software is provided "AS IS". Your exclusiv
+e remedy and Sun's entire liability under this limited
+warranty will be at Sun's option to replace Software media
+or refund the fee paid f or Software.
+
+
+
+4. DISCLAIMER OF WARRANTY. UNLESS SPECIFIED IN THIS
+AGREEMENT, ALL EXPRESS OR IMPLIED CONDITIONS,
+REPRESENTATIONS AND WARRANTIES, IN CLUDING ANY IMPLIED
+WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTIC ULAR
+PURPOSE OR NON-INFRINGEMENT ARE DISCLAIMED, EXCEPT TO THE
+EXTENT
+ THAT THESE DISCLAIMERS ARE HELD TO BE LEGALLY INVALID.
+
+
+
+5. LIMITATION OF LIABILITY. TO THE EXTENT NOT PROHIBITED
+BY LAW , IN NO EVENT WILL SUN OR ITS LICENSORS BE LIABLE
+FOR ANY LOST REVENU E, PROFIT OR DATA, OR FOR SPECIAL,
+INDIRECT, CONSEQUENTIAL, INCIDENTA L OR PUNITIVE DAMAGES,
+HOWEVER CAUSED REGARDLESS OF THE THEORY OF LIA BILITY,
+ARISING OUT OF OR RELATED TO THE USE OF OR INABILITY TO USE
+S OFTWARE, EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY
+OF SUCH DAMA GES. In no event will Sun's liability to you,
+whether in contract,
+ tort (including negligence), or otherwise, exceed the
+ amount paid by you for Software under this Agreement. The
+ foregoing limitations will apply even if the above stated
+warranty fails of its essential p urpose.
+
+
+
+6. Termination. This Agreement is effective until
+terminated. You may terminate this Agreement at any time
+by destroying all co pies of Software. This Agreement will
+terminate immediately withou t notice from Sun if you fail
+to comply with any provision of this Ag reement. Upon
+Termination, you must destroy all copies of Software
+.
+
+
+
+7. Export Regulations. All Software and technical data
+delivered und er this Agreement are subject to US export
+control laws and may be su bject to export or import
+regulations in other countries. You agre e to comply
+strictly with all such laws and regulations and acknowled
+ge that you have the responsibility to obtain such licenses
+to export , re-export, or import as may be required after
+delivery to you.
+
+
+
+8. U.S. Government Restricted Rights. If Software is
+being acqu ired by or on behalf of the U.S. Government or
+by a U.S. Government p rime contractor or subcontractor (at
+any tier), then the Government's
+ rights in Software and accompanying documentation will be
+ only as se t forth in this Agreement; this is in
+accordance with 48 CFR 227.7201
+ through 227.7202-4 (for Department of Defense (DOD)
+ acquisitions) an d with 48 CFR 2.101 and 12.212 (for
+non-DOD acquisitions).
+
+
+
+9. Governing Law. Any action related to this Agreement
+will be governed by California law and controlling U.S.
+federal law. No ch oice of law rules of any jurisdiction
+will apply.
+
+
+
+10. Severability. If any provision of this Agreement is
+held to be un enforceable, this Agreement will remain in
+effect with the provision omitted, unless omission would
+frustrate the intent of the parties, i n which case this
+Agreement will immediately terminate.
+
+
+
+11. Integration. This Agreement is the entire agreement
+between yo u and Sun relating to its subject matter. It
+supersedes all prior or contemporaneous oral or written
+communications, proposals, represe ntations and warranties
+and prevails over any conflicting or addition al terms of
+any quote, order, acknowledgment, or other communication
+between the parties relating to its subject matter during
+the term of
+ this Agreement. No modification of this Agreement will be
+ binding , unless in writing and signed by an authorized
+representative of eac h party.
+
+
+
+
+
+ JAVA ADVANCED IMAGING, VERSION 1.1.2
+
+
+
+ SUPPLEMENTAL LICENSE TERMS
+
+
+
+These supplemental license terms ("Supplemental Terms") add
+to or mod ify the terms of the Binary Code License
+Agreement (collectively, the
+ "Agreement"). Capitalized terms not defined in these
+ Supplemental Te rms shall have the same meanings ascribed
+to them in the Agreement. T hese Supplemental Terms shall
+supersede any inconsistent or conflicti ng terms in the
+Agreement, or in any license contained within the Sof
+tware.
+
+
+
+1. Software Internal Use and Development License Grant.
+Subject to
+ the terms and conditions of this Agreement, including, but
+ not limit ed to Section 3 (Java Technology Restrictions)
+of these Supplemental Terms, Sun grants you a
+non-exclusive, non-transferable, limited lice nse to
+reproduce internally and use internally the binary form of
+the
+ Software, complete and unmodified, for the sole purpose of
+ designing , developing and testing your Java applets and
+applications ("Program s").
+
+
+
+2. License to Distribute Software. In addition to the
+license gran ted in Section 1 (Software Internal Use and
+Development License Grant ) of these Supplemental Terms,
+subject to the terms and conditions of
+ this Agreement, including but not limited to, Section 3
+ (Java Techno logy Restrictions) of these Supplemental
+Terms, Sun grants you a non- exclusive, non-transferable,
+limited license to reproduce and distrib ute the Software
+in binary code form only, provided that you (i) dist ribute
+the Software complete and unmodified and only bundled as
+part of your Programs, (ii) do not distribute additional
+software intended
+ to replace any component(s) of the Software, (iii) do not
+ remove or alter any proprietary legends or notices
+contained in the Software, ( iv) only distribute the
+Software subject to a license agreement that protects Sun's
+interests consistent with the terms contained in this
+Agreement, and (v) agree to defend and indemnify Sun and
+its licensor s from and against any damages, costs,
+liabilities, settlement amount s and/or expenses (including
+attorneys' fees) incurred in connection with any claim,
+lawsuit or action by any third party that arises or r
+esults from the use or distribution of any and all Programs
+and/or So ftware.
+
+
+
+3. Java Technology Restrictions. You may not modify the
+Java Platform
+ Interface ("JPI", identified as classes contained within
+ the "java" package or any subpackages of the "java"
+package), by creating additi onal classes within the JPI or
+otherwise causing the addition to or m odification of the
+classes in the JPI. In the event that you creat e an
+additional class and associated API(s) which (i) extends
+the fun ctionality of the Java platform, and (ii) is
+exposed to third party s oftware developers for the purpose
+of developing additional software which invokes such
+additional API, you must promptly publish broadly an
+accurate specification for such API for free use by all
+developers
+. You may not create, or authorize your licensees to create additi
+onal classes, interfaces, or subpackages that are in any
+way identifi ed as "java", "javax", "sun" or similar
+convention as specified by Su n in any naming convention
+designation.
+
+
+
+4. Java Runtime Availability. Refer to the appropriate
+version of t he Java Runtime Environment binary code
+license (currently located at
+ http://www.java.sun.com/jdk/index.html) for the
+ availability of runt ime code which may be distributed
+with Java applets and applications.
+
+
+
+5. Trademarks and Logos. You acknowledge and agree as
+between you and
+ Sun that Sun owns the SUN, SOLARIS, JAVA, JINI, FORTE, and
+ iPLANET t rademarks and all SUN, SOLARIS, JAVA, JINI,
+FORTE, and iPLANET-relate d trademarks, service marks,
+logos and other brand designations ("Sun
+ Marks"), and you agree to comply with the Sun Trademark
+ and Logo Usa ge Requirements currently located at
+http://www.sun.com/policies/trad emarks. Any use you make
+of the Sun Marks inures to Sun's benefit.
+
+
+
+
+6. Source Code. Software may contain source code that is
+provided sol ely for reference purposes pursuant to the
+terms of this Agreement. Source code may not be
+redistributed unless expressly provided fo r in this
+Agreement.
+
+
+
+7. Termination for Infringement. Either party may
+terminate this A greement immediately should any Software
+become, or in either party's
+ opinion be likely to become, the subject of a claim of
+ infringement of any intellectual property right.
+
+
+
+For inquiries please contact: Sun Microsystems, Inc., 4150
+Network Ci rcle, Santa Clara, California 95054, U.S.A
+
+(LFI#143342/Form ID#011801)
diff --git a/pdf-as-cli/src/test/resources/pdfas-config/licenses/sun-jaicmm/LICENSE b/pdf-as-cli/src/test/resources/pdfas-config/licenses/sun-jaicmm/LICENSE
new file mode 100644
index 00000000..b5873aae
--- /dev/null
+++ b/pdf-as-cli/src/test/resources/pdfas-config/licenses/sun-jaicmm/LICENSE
@@ -0,0 +1,186 @@
+License for sun JAI ICC color profiles. Downloaded from
+http://java.sun.com/products/java-media/jai/downloads/download-1_1_2.html
+
+
+ Java(TM) Advanced Imaging API
+ Version 1.0
+ Binary Code License
+
+This binary code license ("License") contains
+rights and restrictions associated with use of
+the accompanying Java(TM) Advanced Imaging API
+software and documentation ("Software"). Read the
+License carefully before using the Software. By
+using the Software you agree to the terms and
+conditions of this License.
+
+1. License to Distribute. Licensee is granted a
+ royalty-free right to reproduce and
+ distribute the Software provided that
+ Licensee:
+
+ (A) distributes the Software complete and
+ unmodified (except for the specific files
+ identified as optional in the Software
+ README file), only as part of, and for
+ the sole purpose of running, Licensee's
+ Java compatible applet or application
+ ("Program") into which the Software is
+ incorporated;
+
+ (B) does not distribute additional software
+ intended to replace any component(s) of
+ the Software;
+
+ (C) agrees to incorporate the most current
+ version of the Software that was
+ available 180 days prior to each
+ production release of the Program;
+
+ (D) does not remove or alter any proprietary
+ legends or notices contained in the
+ Software;
+
+ (E) includes the provisions of Sections 2, 3,
+ 5, 6, 8 and 9 in Licensee's license
+ agreement for the Program; and
+
+ (F) agrees to indemnify, hold harmless, and
+ defend Sun and its licensors from and
+ against any claims or lawsuits, including
+ attorneys' fees, that arise or result
+ from the use or distribution of the
+ Program.
+
+2. Java Platform Interface. Licensee may not
+ modify the Java Platform Interface ("JPI",
+ identified as classes contained within the
+ "java" package or any subpackages of the
+ "java" package), by creating additional
+ classes within the JPI or otherwise causing
+ the addition to or modification of the
+ classes in the JPI. In the event that
+ Licensee creates any Java-related API and
+ distributes such API to others for applet or
+ application development, Licensee must
+ promptly publish broadly, an accurate
+ specification for such API for free use by
+ all developers of Java-based software.
+
+3. Restrictions. Software is confidential
+ copyrighted information of Sun and title to
+ all copies is retained by Sun and/or its
+ licensors. Licensee shall not decompile,
+ disassemble, decrypt, extract, or otherwise
+ reverse engineer Software. Software may not
+ be leased, assigned, or sublicensed, in whole
+ or in part, except as specifically authorized
+ in Section 1. Software is not designed or
+ intended for use in online control of
+ aircraft, air traffic, aircraft navigation or
+ aircraft communications; or in the design,
+ construction, operation or maintenance of any
+ nuclear facility. Licensee warrants that it
+ will not use or redistribute the Software for
+ such purposes.
+
+4. Trademarks and Logos. This License does not
+ authorize Licensee to use any Sun name,
+ trademark or logo. Licensee acknowledges that
+ Sun owns the Java trademark and all
+ Java-related trademarks, logos and icons
+ including the Coffee Cup and Duke ("Java
+ Marks") and agrees to:
+
+ (A) comply with the Java Trademark Guidelines
+ at http://java.sun.com/trademarks.html;
+
+ (B) not do anything harmful to or
+ inconsistent
+ with Sun's rights in the Java Marks; and
+
+ (C) assist Sun in protecting those rights,
+ including assigning to Sun any rights
+ acquired by Licensee in any Java Mark.
+
+5. Disclaimer of Warranty. Software is provided
+ "AS IS," without a warranty of any kind. ALL
+ EXPRESS OR IMPLIED REPRESENTATIONS AND
+ WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR
+ PURPOSE OR NON-INFRINGEMENT, ARE HEREBY
+ EXCLUDED.
+
+6. Limitation of Liability. SUN AND ITS
+LICENSORS
+ SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED
+ BY LICENSEE OR ANY THIRD PARTY AS A RESULT OF
+ USING OR DISTRIBUTING SOFTWARE. IN NO EVENT
+ WILL SUN OR ITS LICENSORS BE LIABLE FOR ANY
+ LOST REVENUE, PROFIT OR DATA, OR FOR DIRECT,
+ INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL
+ OR PUNITIVE DAMAGES, HOWEVER CAUSED AND
+ REGARDLESS OF THE THEORY OF LIABILITY,
+ ARISING OUT OF THE USE OF OR INABILITY TO USE
+ SOFTWARE, EVEN IF SUN HAS BEEN ADVISED OF THE
+ POSSIBILITY OF SUCH DAMAGES.
+
+7. Termination. This license shall automatically
+ terminate 180 days after production release
+ of the next version of the Software by Sun.
+ Licensee may terminate this License at any
+ time by destroying all copies of Software.
+ This License will terminate immediately
+ without notice from Sun if Licensee fails to
+ comply with any provision of this License.
+ Upon such termination, Licensee must destroy
+ all copies of Software.
+
+8. Export Regulations. Software, including
+ technical data, is subject to U.S. export
+ control laws, including the U.S. Export
+ Administration Act and its associated
+ regulations, and may be subject to export or
+ import regulations in other countries.
+ Licensee agrees to comply strictly with all
+ such regulations and acknowledges that it has
+ the responsibility to obtain licenses to
+ export, re-export, or import Software.
+ Software may not be downloaded, or otherwise
+ exported or re-exported
+
+ (A) into, or to a national or resident of,
+ Cuba, Iraq, Iran, North Korea, Libya,
+ Sudan, Syria or any country to which the
+ U.S. has embargoed goods; or
+
+ (B) to anyone on the U.S. Treasury
+ Department's list of Specially Designated
+ Nations or the U.S. Commerce Department's
+ Table of Denial Orders.
+
+9. Restricted Rights. Use, duplication or
+ disclosure by the United States government is
+ subject to the restrictions as set forth in
+ the Rights in Technical Data and Computer
+ Software Clauses in DFARS 252.227-7013(c) (1)
+ (ii) and FAR 52.227-19(c) (2) as applicable.
+
+10. Governing Law. Any action related to this
+ License will be governed by California law
+ and controlling U.S. federal law. No choice
+ of law rules of any jurisdiction will apply.
+
+11. Severability. If any of the above provisions
+ are held to be in violation of applicable
+ law, void, or unenforceable in any
+ jurisdiction, then such provisions are
+ herewith waived or amended to the extent
+ necessary for the License to be otherwise
+ enforceable in such jurisdiction. However,
+ if in Sun's opinion deletion or amendment of
+ any provisions of the License by operation of
+ this paragraph unreasonably compromises the
+ rights or increase the liabilities of Sun or
+ its licensors, Sun reserves the right to
+ terminate the License.