You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ti...@apache.org on 2026/01/12 13:52:26 UTC
(pdfbox-jbig2) branch master updated: PDFBOX-5660: avoid problem with space in filename
This is an automated email from the ASF dual-hosted git repository.
tilman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pdfbox-jbig2.git
The following commit(s) were added to refs/heads/master by this push:
new c055b28 PDFBOX-5660: avoid problem with space in filename
c055b28 is described below
commit c055b28029bf208d789d451b56515484ace41444
Author: Tilman Hausherr <ti...@snafu.de>
AuthorDate: Mon Jan 12 14:52:19 2026 +0100
PDFBOX-5660: avoid problem with space in filename
---
src/test/java/org/apache/pdfbox/jbig2/JBIG2ImageReaderDemo.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/test/java/org/apache/pdfbox/jbig2/JBIG2ImageReaderDemo.java b/src/test/java/org/apache/pdfbox/jbig2/JBIG2ImageReaderDemo.java
index 19f29c5..59864d0 100644
--- a/src/test/java/org/apache/pdfbox/jbig2/JBIG2ImageReaderDemo.java
+++ b/src/test/java/org/apache/pdfbox/jbig2/JBIG2ImageReaderDemo.java
@@ -24,6 +24,7 @@ import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.lang.reflect.InvocationTargetException;
+import java.net.URISyntaxException;
import java.net.URL;
import javax.imageio.ImageReadParam;
@@ -70,10 +71,10 @@ public class JBIG2ImageReaderDemo
}
public static void main(String[] args)
- throws InterruptedException, InvocationTargetException, IOException, JBIG2Exception
+ throws InterruptedException, InvocationTargetException, IOException, JBIG2Exception, URISyntaxException
{
URL imageUrl = JBIG2ImageReaderDemo.class.getResource("/images/042_1.jb2");
- new JBIG2ImageReaderDemo(imageUrl.getPath(), 1).show();
+ new JBIG2ImageReaderDemo(imageUrl.toURI().getPath(), 1).show();
}
}