aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-pdfbox-2/src/main
diff options
context:
space:
mode:
authorThomas Lenz <thomas.lenz@iaik.tugraz.at>2023-01-12 12:02:13 +0000
committerThomas Lenz <thomas.lenz@iaik.tugraz.at>2023-01-12 12:02:13 +0000
commit388a5e4999b743a07a29ac8d9b710dfcd7c9f233 (patch)
tree8546d0026162622cad62d51b50e1efaeea135917 /pdf-as-pdfbox-2/src/main
parente69ba716ebae7307645ff9c640967d58ef48b9f4 (diff)
parentcf9c239ba2ce3883d9a6e334e8e2a40e4b9e6f3a (diff)
downloadpdf-as-4-388a5e4999b743a07a29ac8d9b710dfcd7c9f233.tar.gz
pdf-as-4-388a5e4999b743a07a29ac8d9b710dfcd7c9f233.tar.bz2
pdf-as-4-388a5e4999b743a07a29ac8d9b710dfcd7c9f233.zip
Merge branch 'show-failed-fontdesc' into 'development'
Include failing font descriptor in IOException msg See merge request egiz/pdf-as-4!5
Diffstat (limited to 'pdf-as-pdfbox-2/src/main')
-rw-r--r--pdf-as-pdfbox-2/src/main/java/at/gv/egiz/pdfas/lib/impl/stamping/pdfbox2/PDFBoxFont.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/pdf-as-pdfbox-2/src/main/java/at/gv/egiz/pdfas/lib/impl/stamping/pdfbox2/PDFBoxFont.java b/pdf-as-pdfbox-2/src/main/java/at/gv/egiz/pdfas/lib/impl/stamping/pdfbox2/PDFBoxFont.java
index 415aa74a..a63d9d6f 100644
--- a/pdf-as-pdfbox-2/src/main/java/at/gv/egiz/pdfas/lib/impl/stamping/pdfbox2/PDFBoxFont.java
+++ b/pdf-as-pdfbox-2/src/main/java/at/gv/egiz/pdfas/lib/impl/stamping/pdfbox2/PDFBoxFont.java
@@ -218,7 +218,7 @@ public class PDFBoxFont {
PDFont font = pdfObject.getSigBlockFontCache().getFont(fontDesc);
if (font == null) {
pdfObject.getSigBlockFontCache().showAvailableFonts();
- throw new IOException("Invalid font descriptor");
+ throw new IOException("Invalid font descriptor \"" + fontDesc + "\"");
}
return font;
}