From cf9c239ba2ce3883d9a6e334e8e2a40e4b9e6f3a Mon Sep 17 00:00:00 2001 From: Jakob Heher Date: Mon, 27 Jun 2022 07:56:51 +0000 Subject: Include failing font descriptor in IOException msg --- .../java/at/gv/egiz/pdfas/lib/impl/stamping/pdfbox2/PDFBoxFont.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pdf-as-pdfbox-2') 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; } -- cgit v1.2.3