From 9f3ca0327be376ac6e4db8aef18274f5317e554e Mon Sep 17 00:00:00 2001 From: Thomas <> Date: Fri, 8 Mar 2024 16:46:19 +0100 Subject: test(core): add some more positioning tests --- .../cfg/profiles/SIGNATURBLOCK_DE_FORCE.properties | 9 +++++++++ .../POS_LAST_ALREADY_SIGNED/config.properties | 7 +++++++ .../public_pdfbox2/POS_LAST_ALREADY_SIGNED/example.pdf | Bin 0 -> 91766 bytes .../POS_LAST_ALREADY_SIGNED/example_ref.png | Bin 0 -> 342737 bytes .../config.properties | 7 +++++++ .../POS_LAST_ALREADY_SIGNED_FORCE_NEW/example.pdf | Bin 0 -> 91766 bytes .../POS_LAST_ALREADY_SIGNED_FORCE_NEW/example_ref.png | Bin 0 -> 135525 bytes 7 files changed, 23 insertions(+) create mode 100644 pdf-as-lib/src/configuration/cfg/profiles/SIGNATURBLOCK_DE_FORCE.properties create mode 100644 pdf-as-tests/src/test/test-suites/public_pdfbox2/POS_LAST_ALREADY_SIGNED/config.properties create mode 100644 pdf-as-tests/src/test/test-suites/public_pdfbox2/POS_LAST_ALREADY_SIGNED/example.pdf create mode 100644 pdf-as-tests/src/test/test-suites/public_pdfbox2/POS_LAST_ALREADY_SIGNED/example_ref.png create mode 100644 pdf-as-tests/src/test/test-suites/public_pdfbox2/POS_LAST_ALREADY_SIGNED_FORCE_NEW/config.properties create mode 100644 pdf-as-tests/src/test/test-suites/public_pdfbox2/POS_LAST_ALREADY_SIGNED_FORCE_NEW/example.pdf create mode 100644 pdf-as-tests/src/test/test-suites/public_pdfbox2/POS_LAST_ALREADY_SIGNED_FORCE_NEW/example_ref.png diff --git a/pdf-as-lib/src/configuration/cfg/profiles/SIGNATURBLOCK_DE_FORCE.properties b/pdf-as-lib/src/configuration/cfg/profiles/SIGNATURBLOCK_DE_FORCE.properties new file mode 100644 index 00000000..3eb723c5 --- /dev/null +++ b/pdf-as-lib/src/configuration/cfg/profiles/SIGNATURBLOCK_DE_FORCE.properties @@ -0,0 +1,9 @@ + +################################################################################################### +# PROFIL: Standardsignatur Deutsch + +# Kurzbeschreibung +sig_obj.SIGNATURBLOCK_DE_FORCE.description=Standardsignatur Deutsch +sig_obj.SIGNATURBLOCK_DE_FORCE.parent=BASE_NORMAL +sig_obj.SIGNATURBLOCK_DE_FORCE.SIGNED_NEWPAGE_FORCE=true +sig_obj.types.SIGNATURBLOCK_DE_FORCE=on diff --git a/pdf-as-tests/src/test/test-suites/public_pdfbox2/POS_LAST_ALREADY_SIGNED/config.properties b/pdf-as-tests/src/test/test-suites/public_pdfbox2/POS_LAST_ALREADY_SIGNED/config.properties new file mode 100644 index 00000000..572f9801 --- /dev/null +++ b/pdf-as-tests/src/test/test-suites/public_pdfbox2/POS_LAST_ALREADY_SIGNED/config.properties @@ -0,0 +1,7 @@ +test.type=position +test.name=POS_LAST_ALREADY_SIGNED +profile.id=SIGNATURBLOCK_DE +position.positioning_string=p:last +position.page_number=2 +parent=../auto_pos_example.properties +position.ignored_areas=208,803,142,9 diff --git a/pdf-as-tests/src/test/test-suites/public_pdfbox2/POS_LAST_ALREADY_SIGNED/example.pdf b/pdf-as-tests/src/test/test-suites/public_pdfbox2/POS_LAST_ALREADY_SIGNED/example.pdf new file mode 100644 index 00000000..3ce5f831 Binary files /dev/null and b/pdf-as-tests/src/test/test-suites/public_pdfbox2/POS_LAST_ALREADY_SIGNED/example.pdf differ diff --git a/pdf-as-tests/src/test/test-suites/public_pdfbox2/POS_LAST_ALREADY_SIGNED/example_ref.png b/pdf-as-tests/src/test/test-suites/public_pdfbox2/POS_LAST_ALREADY_SIGNED/example_ref.png new file mode 100644 index 00000000..e4445336 Binary files /dev/null and b/pdf-as-tests/src/test/test-suites/public_pdfbox2/POS_LAST_ALREADY_SIGNED/example_ref.png differ diff --git a/pdf-as-tests/src/test/test-suites/public_pdfbox2/POS_LAST_ALREADY_SIGNED_FORCE_NEW/config.properties b/pdf-as-tests/src/test/test-suites/public_pdfbox2/POS_LAST_ALREADY_SIGNED_FORCE_NEW/config.properties new file mode 100644 index 00000000..28d4438f --- /dev/null +++ b/pdf-as-tests/src/test/test-suites/public_pdfbox2/POS_LAST_ALREADY_SIGNED_FORCE_NEW/config.properties @@ -0,0 +1,7 @@ +test.type=position +test.name=POS_LAST_ALREADY_SIGNED_FORCE_NEW +profile.id=SIGNATURBLOCK_DE_FORCE +position.positioning_string=p:auto +position.page_number=3 +parent=../auto_pos_example.properties +position.ignored_areas=208,803,142,9 diff --git a/pdf-as-tests/src/test/test-suites/public_pdfbox2/POS_LAST_ALREADY_SIGNED_FORCE_NEW/example.pdf b/pdf-as-tests/src/test/test-suites/public_pdfbox2/POS_LAST_ALREADY_SIGNED_FORCE_NEW/example.pdf new file mode 100644 index 00000000..3ce5f831 Binary files /dev/null and b/pdf-as-tests/src/test/test-suites/public_pdfbox2/POS_LAST_ALREADY_SIGNED_FORCE_NEW/example.pdf differ diff --git a/pdf-as-tests/src/test/test-suites/public_pdfbox2/POS_LAST_ALREADY_SIGNED_FORCE_NEW/example_ref.png b/pdf-as-tests/src/test/test-suites/public_pdfbox2/POS_LAST_ALREADY_SIGNED_FORCE_NEW/example_ref.png new file mode 100644 index 00000000..6f537317 Binary files /dev/null and b/pdf-as-tests/src/test/test-suites/public_pdfbox2/POS_LAST_ALREADY_SIGNED_FORCE_NEW/example_ref.png differ -- cgit v1.2.3