From 6224db4cffbecc8f3daaf3e523498a992adbe462 Mon Sep 17 00:00:00 2001 From: Tilman Hausherr Date: Sat, 18 Jan 2025 13:09:49 +0000 Subject: [PATCH] PDFBOX-5660: improve exception message git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1923205 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/pdfbox/pdmodel/PDAbstractContentStream.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDAbstractContentStream.java b/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDAbstractContentStream.java index 79bc989f6d8..11d8aa31e05 100644 --- a/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDAbstractContentStream.java +++ b/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDAbstractContentStream.java @@ -1693,7 +1693,9 @@ else if (Character.isValidCodePoint(codePoint)) { source = "?"; } - throw new IllegalStateException("could not find the glyphId for the character: " + source); + throw new IllegalStateException("could not find the glyphId for the character: " + + source + ", codePoint: " + codePoint + + " (0x" + Integer.toHexString(codePoint).toUpperCase() + ")"); } originalGlyphIds.add(glyphId); }