diff options
| author | Jakob Heher <jakob.heher@iaik.tugraz.at> | 2026-05-12 15:33:19 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-05-12 15:33:19 +0200 |
| commit | c8abbd8bef5349ab892a2853a4e5e3d5ed16b670 (patch) | |
| tree | 04e86de8b547ac2685165cdf652b6c16355ae3c3 /pdf-as-pdfbox-2/src | |
| parent | e2bfdc313c0b6395d272624688b4ed1cba7ce967 (diff) | |
| download | pdf-as-4-c8abbd8bef5349ab892a2853a4e5e3d5ed16b670.tar.gz pdf-as-4-c8abbd8bef5349ab892a2853a4e5e3d5ed16b670.tar.bz2 pdf-as-4-c8abbd8bef5349ab892a2853a4e5e3d5ed16b670.zip | |
Update docs & various fixes discovered in the process (#86)
- update documentation for pdf-as 5
- document the v2 json api
- fix a number of documentation quirks
- document `keyId` parameter
- px (pixels) -> pt (pdf page units)
- document --verify_level
- remove a number of documented features that were never implemented:
- `adobeSignFieldValue` and `sigLogoAltText` from signature profiles
- `UNDERLINE` and `STRIKETHRU` from fonts
- `num-bytes` parameter
- `verify_only`/`sign_only` enable states for profiles
- update mobile BKU base URL
- update pdfbox backend default to 3 in sample configurations
- consistently made boolean parsing from configuration files case permissive
- add moa verification timeout
- add support for BOLDITALIC to all base fonts, and for ITALIC to helvetica and courier
- fix a number of small quirks
- hibernate properties are now reloaded properly
- fix the signature block parameter key regex
- v1 json api now correctly checks for onlinebku/mobilebku being enabled
- pdfbox 2 module correctly compares for integer equality regardless of cached boxed ints
- test operationcountwatcher no longer sometimes breaks due to spring context differences
Diffstat (limited to 'pdf-as-pdfbox-2/src')
4 files changed, 4 insertions, 4 deletions
diff --git a/pdf-as-pdfbox-2/src/main/java/at/gv/egiz/pdfas/lib/impl/pdfbox2/PDFBOXBackend.java b/pdf-as-pdfbox-2/src/main/java/at/gv/egiz/pdfas/lib/impl/pdfbox2/PDFBOXBackend.java index 1a9424a6..4b4e1db9 100644 --- a/pdf-as-pdfbox-2/src/main/java/at/gv/egiz/pdfas/lib/impl/pdfbox2/PDFBOXBackend.java +++ b/pdf-as-pdfbox-2/src/main/java/at/gv/egiz/pdfas/lib/impl/pdfbox2/PDFBOXBackend.java @@ -32,7 +32,7 @@ public class PDFBOXBackend implements PDFASBackend { @Override public boolean usedAsDefault() { - return true; + return false; } @Override diff --git a/pdf-as-pdfbox-2/src/main/java/at/gv/egiz/pdfas/lib/impl/pdfbox2/configuration/ProfileValidator.java b/pdf-as-pdfbox-2/src/main/java/at/gv/egiz/pdfas/lib/impl/pdfbox2/configuration/ProfileValidator.java index 97b6b66e..aa90d6a7 100644 --- a/pdf-as-pdfbox-2/src/main/java/at/gv/egiz/pdfas/lib/impl/pdfbox2/configuration/ProfileValidator.java +++ b/pdf-as-pdfbox-2/src/main/java/at/gv/egiz/pdfas/lib/impl/pdfbox2/configuration/ProfileValidator.java @@ -102,7 +102,7 @@ public class ProfileValidator implements ConfigurationValidator{ @Override public boolean usedAsDefault() { - return true; + return false; } @Override diff --git a/pdf-as-pdfbox-2/src/main/java/at/gv/egiz/pdfas/lib/impl/pdfbox2/placeholder/SignaturePlaceholderExtractor.java b/pdf-as-pdfbox-2/src/main/java/at/gv/egiz/pdfas/lib/impl/pdfbox2/placeholder/SignaturePlaceholderExtractor.java index d90f02a1..372f6d70 100644 --- a/pdf-as-pdfbox-2/src/main/java/at/gv/egiz/pdfas/lib/impl/pdfbox2/placeholder/SignaturePlaceholderExtractor.java +++ b/pdf-as-pdfbox-2/src/main/java/at/gv/egiz/pdfas/lib/impl/pdfbox2/placeholder/SignaturePlaceholderExtractor.java @@ -401,7 +401,7 @@ public class SignaturePlaceholderExtractor extends PDFStreamEngine implements Pl try { Integer firstIdInt = Integer.valueOf(first); Integer secondIdInt = Integer.valueOf(second); - return firstIdInt == secondIdInt; + return firstIdInt.equals(secondIdInt); } catch (NumberFormatException e) { log.trace("Can not compare placeholderId's on integer level. Using String compare ... "); diff --git a/pdf-as-pdfbox-2/src/main/java/at/knowcenter/wag/egov/egiz/pdfbox2/pdf/PDFUtilities.java b/pdf-as-pdfbox-2/src/main/java/at/knowcenter/wag/egov/egiz/pdfbox2/pdf/PDFUtilities.java index 741860e2..6fef7549 100644 --- a/pdf-as-pdfbox-2/src/main/java/at/knowcenter/wag/egov/egiz/pdfbox2/pdf/PDFUtilities.java +++ b/pdf-as-pdfbox-2/src/main/java/at/knowcenter/wag/egov/egiz/pdfbox2/pdf/PDFUtilities.java @@ -87,7 +87,7 @@ public abstract class PDFUtilities implements IConfigurationConstants{ * Only used if background color should be determined automatically. * That can be necessary of PDF contains page-size images. */ - Color bgColor = "true".equals(settings.getValue(BG_COLOR_DETECTION)) + Color bgColor = Boolean.parseBoolean(settings.getValue(BG_COLOR_DETECTION)) ? determineBackgroundColor(bim) : MAGIC_COLOR; |
