pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "bob swanson"<bobswans...@gmail.com>
Subject re: Extract images (JAI)
Date Mon, 12 Jun 2017 16:26:14 GMT
I downloaded the JAR as suggested. When I added it to the classpath, I got new and different
errors. Example:

Exception in thread "main" java.util.ServiceConfigurationError: javax.imageio.spi.ImageReaderSpi:
Provider com.github.jaiimageio.jpeg2000.impl.J2KImageReaderSpi could not be instantiated
        at java.util.ServiceLoader.fail(ServiceLoader.java:232)
        at java.util.ServiceLoader.access$100(ServiceLoader.java:185)
        at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:384)
        at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:404)
        at java.util.ServiceLoader$1.next(ServiceLoader.java:480)
        at javax.imageio.spi.IIORegistry.registerApplicationClasspathSpis(IIORegistry.java:210)
        at javax.imageio.spi.IIORegistry.<init>(IIORegistry.java:138)
        at javax.imageio.spi.IIORegistry.getDefaultInstance(IIORegistry.java:159)
        at javax.imageio.ImageIO.<clinit>(ImageIO.java:66)
        at org.apache.pdfbox.tools.imageio.ImageIOUtil.writeImage(ImageIOUtil.java:174)
..
..

Command line:

java -classpath .:../pdfbox-app-2.0.6.jar:./jai-imageio-jpeg2000-1.3.0.jar org/apache/pdfbox/tools/ExtractImages
January_2017.pdf

Note that I'm using 2.0.6. Running on Ubuntu Linux.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org


Mime
View raw message