aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-pdfbox-3
diff options
context:
space:
mode:
authorJakob Heher <jakob.heher@iaik.tugraz.at>2026-05-12 15:33:19 +0200
committerGitHub <noreply@github.com>2026-05-12 15:33:19 +0200
commitc8abbd8bef5349ab892a2853a4e5e3d5ed16b670 (patch)
tree04e86de8b547ac2685165cdf652b6c16355ae3c3 /pdf-as-pdfbox-3
parente2bfdc313c0b6395d272624688b4ed1cba7ce967 (diff)
downloadpdf-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-3')
-rw-r--r--pdf-as-pdfbox-3/src/main/kotlin/at/gv/egiz/pdfas/lib/impl/pdfbox3/PDFBOXObject.kt20
1 files changed, 13 insertions, 7 deletions
diff --git a/pdf-as-pdfbox-3/src/main/kotlin/at/gv/egiz/pdfas/lib/impl/pdfbox3/PDFBOXObject.kt b/pdf-as-pdfbox-3/src/main/kotlin/at/gv/egiz/pdfas/lib/impl/pdfbox3/PDFBOXObject.kt
index 4cb4086b..25fd9704 100644
--- a/pdf-as-pdfbox-3/src/main/kotlin/at/gv/egiz/pdfas/lib/impl/pdfbox3/PDFBOXObject.kt
+++ b/pdf-as-pdfbox-3/src/main/kotlin/at/gv/egiz/pdfas/lib/impl/pdfbox3/PDFBOXObject.kt
@@ -2,6 +2,7 @@ package at.gv.egiz.pdfas.lib.impl.pdfbox3
import at.gv.egiz.pdfas.lib.impl.status.OperationStatus
import at.gv.egiz.pdfas.lib.impl.status.PDFObject
+import at.knowcenter.wag.egov.egiz.table.Style
import org.apache.pdfbox.Loader
import org.apache.pdfbox.pdmodel.PDDocument
import org.apache.pdfbox.pdmodel.font.PDFont
@@ -65,11 +66,16 @@ class PDFBOXObject(status: OperationStatus) : PDFObject(status) {
}
private val DEFAULT_FONT_DESCRIPTORS = mapOf(
- "HELVETICA:NORMAL" to Standard14Fonts.FontName.HELVETICA,
- "HELVETICA:BOLD" to Standard14Fonts.FontName.HELVETICA_BOLD,
- "COURIER:NORMAL" to Standard14Fonts.FontName.COURIER,
- "COURIER:BOLD" to Standard14Fonts.FontName.COURIER_BOLD,
- "TIMES_ROMAN:NORMAL" to Standard14Fonts.FontName.TIMES_ROMAN,
- "TIMES_ROMAN:BOLD" to Standard14Fonts.FontName.TIMES_BOLD,
- "TIMES_ROMAN:ITALIC" to Standard14Fonts.FontName.TIMES_ITALIC,
+ "${Style.HELVETICA}:${Style.NORMAL}" to Standard14Fonts.FontName.HELVETICA,
+ "${Style.HELVETICA}:${Style.BOLD}" to Standard14Fonts.FontName.HELVETICA_BOLD,
+ "${Style.HELVETICA}:${Style.ITALIC}" to Standard14Fonts.FontName.HELVETICA_OBLIQUE,
+ "${Style.HELVETICA}:${Style.BOLDITALIC}" to Standard14Fonts.FontName.HELVETICA_BOLD_OBLIQUE,
+ "${Style.COURIER}:${Style.NORMAL}" to Standard14Fonts.FontName.COURIER,
+ "${Style.COURIER}:${Style.BOLD}" to Standard14Fonts.FontName.COURIER_BOLD,
+ "${Style.COURIER}:${Style.ITALIC}" to Standard14Fonts.FontName.COURIER_OBLIQUE,
+ "${Style.COURIER}:${Style.BOLDITALIC}" to Standard14Fonts.FontName.COURIER_BOLD_OBLIQUE,
+ "${Style.TIMES_ROMAN}:${Style.NORMAL}" to Standard14Fonts.FontName.TIMES_ROMAN,
+ "${Style.TIMES_ROMAN}:${Style.BOLD}" to Standard14Fonts.FontName.TIMES_BOLD,
+ "${Style.TIMES_ROMAN}:${Style.ITALIC}" to Standard14Fonts.FontName.TIMES_ITALIC,
+ "${Style.TIMES_ROMAN}:${Style.BOLDITALIC}" to Standard14Fonts.FontName.TIMES_BOLD_ITALIC,
)