From 89a917394c762257017c27e0cf5189605776aa57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Lehmk=C3=BChler?= Date: Wed, 23 Oct 2024 05:39:19 +0000 Subject: [PATCH] PDFBOX-5889: support long values for COSInteger git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1921496 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/java/org/apache/pdfbox/debugger/PDFDebugger.java | 2 +- .../java/org/apache/pdfbox/debugger/ui/PDFTreeCellRenderer.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/debugger/src/main/java/org/apache/pdfbox/debugger/PDFDebugger.java b/debugger/src/main/java/org/apache/pdfbox/debugger/PDFDebugger.java index 8006bc2a245..0c4b558797e 100644 --- a/debugger/src/main/java/org/apache/pdfbox/debugger/PDFDebugger.java +++ b/debugger/src/main/java/org/apache/pdfbox/debugger/PDFDebugger.java @@ -1237,7 +1237,7 @@ private String convertToString( Object selectedNode ) } if (selectedNode instanceof COSInteger) { - return Integer.toString(((COSInteger) selectedNode).intValue()); + return Long.toString(((COSInteger) selectedNode).longValue()); } if (selectedNode instanceof COSName) { diff --git a/debugger/src/main/java/org/apache/pdfbox/debugger/ui/PDFTreeCellRenderer.java b/debugger/src/main/java/org/apache/pdfbox/debugger/ui/PDFTreeCellRenderer.java index d51040ae7fc..e324831c5e2 100644 --- a/debugger/src/main/java/org/apache/pdfbox/debugger/ui/PDFTreeCellRenderer.java +++ b/debugger/src/main/java/org/apache/pdfbox/debugger/ui/PDFTreeCellRenderer.java @@ -134,7 +134,7 @@ else if (nodeValue instanceof COSFloat) } else if (nodeValue instanceof COSInteger) { - result = Integer.toString(((COSInteger) nodeValue).intValue()); + result = Long.toString(((COSInteger) nodeValue).longValue()); } else if (nodeValue instanceof COSString) {