You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@pdfbox.apache.org by rd...@swansongrp.com on 2017/06/10 21:03:14 UTC
JAI Dependency During Image Extraction
Trying to extract images from a PDF. Got the following
error(s):
Jun 10, 2017 3:00:16 PM org.apache.pdfbox.contentstream.PDFStreamEngine operatorException
SEVERE: Cannot read JPEG2000 image: Java Advanced Imaging (JAI) Image I/O Tools are not
installed
I went to the PDFBox web page:
https://pdfbox.apache.org/2.0/dependencies.html
which indicates that I need to install the appropriate
jar:
Reading JPEG 2000 (JPX) images: JAI Image I/O Tools Core
However, when I clicked on the link for JAI in the "dependencies.html"
page, the java.net webpage indicated that:
"We're sorry the java.net site has closed."
Any suggestions on where to find the JAI code?
Thanks,
Bob Swanson
Working environment: Running pdfbox-app-2.0.6.jar under Linux (Ubuntu)
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org
Re: Extraction of JPX Files
Posted by Tilman Hausherr <TH...@t-online.de>.
Am 15.06.2017 um 17:57 schrieb Tilman Hausherr:
> Am 15.06.2017 um 17:51 schrieb bob swanson:
>> Got the jar, and it worked fine. The "JPX" files
>> had a .png suffix, but that is no problem for
>> me.
>
> Glad it works now, and sorry again that I thought it's a config problem.
>
> I'm planning to support the "-directJPEG" option, they would then be
> saved 1:1 (without decoding) as .JP2 files (or whatever extension is
> recognized by irfanview, .JPX isn't). Just set yourself as a watcher on
> https://issues.apache.org/jira/browse/PDFBOX-3829 .
Done!
Tilman
>
> Tilman
>
>
>>
>> Thanks again for all of your efforts.
>>
>> Bob Swanson
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
>> For additional commands, e-mail: users-help@pdfbox.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
> For additional commands, e-mail: users-help@pdfbox.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org
Re: Extraction of JPX Files
Posted by Tilman Hausherr <TH...@t-online.de>.
Am 15.06.2017 um 17:51 schrieb bob swanson:
> Got the jar, and it worked fine. The "JPX" files
> had a .png suffix, but that is no problem for
> me.
Glad it works now, and sorry again that I thought it's a config problem.
I'm planning to support the "-directJPEG" option, they would then be
saved 1:1 (without decoding) as .JP2 files (or whatever extension is
recognized by irfanview, .JPX isn't). Just set yourself as a watcher on
https://issues.apache.org/jira/browse/PDFBOX-3829 .
Tilman
>
> Thanks again for all of your efforts.
>
> Bob Swanson
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
> For additional commands, e-mail: users-help@pdfbox.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org
re: Extraction of JPX Files
Posted by bob swanson <bo...@gmail.com>.
Got the jar, and it worked fine. The "JPX" files
had a .png suffix, but that is no problem for
me.
Thanks again for all of your efforts.
Bob Swanson
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org
JAI Not Extracting JPX Format
Posted by bob swanson <bo...@gmail.com>.
Thanks! I'll download a jar
and see what happens.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org
Re: JPX Extraction Issues
Posted by Tilman Hausherr <TH...@t-online.de>.
https://issues.apache.org/jira/browse/PDFBOX-3829
snapshot here:
https://repository.apache.org/content/groups/snapshots/org/apache/pdfbox/pdfbox-app/2.0.7-SNAPSHOT/
must be number 61 or higher. Might take some time until it's there.
Tilman
Am 13.06.2017 um 21:10 schrieb Tilman Hausherr:
> Am 13.06.2017 um 18:51 schrieb bob swanson:
>> I still cannot get it to work. I don't know what I'm
>> doing wrong. Can anyone look at my problem?
>>
>> I have uploaded a bundle of files to:
>>
>> http://www.mediafire.com/file/z204l4e06jti2j7/JPX.zip
>
> Sorry, it's a bug on our side with the image extraction... because the
> error tells this:
>
> SCHWERWIEGEND: Supported formats: JPEG 2000 JPG tiff bmp PCX gif WBMP
> PNG RAW JPEG PNM tif TIFF wbmp jpeg jpg JPEG2000 BMP pcx GIF png raw
> pnm TIF jpeg2000 jpeg 2000
>
> So jpeg2000 is supported but JPX is missing. But it's the same (kindof).
>
> Be patient... will be fixed soon...
>
> Tilman
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
> For additional commands, e-mail: users-help@pdfbox.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org
Re: JPX Extraction Issues
Posted by Tilman Hausherr <TH...@t-online.de>.
Am 13.06.2017 um 18:51 schrieb bob swanson:
> I still cannot get it to work. I don't know what I'm
> doing wrong. Can anyone look at my problem?
>
> I have uploaded a bundle of files to:
>
> http://www.mediafire.com/file/z204l4e06jti2j7/JPX.zip
Sorry, it's a bug on our side with the image extraction... because the
error tells this:
SCHWERWIEGEND: Supported formats: JPEG 2000 JPG tiff bmp PCX gif WBMP
PNG RAW JPEG PNM tif TIFF wbmp jpeg jpg JPEG2000 BMP pcx GIF png raw pnm
TIF jpeg2000 jpeg 2000
So jpeg2000 is supported but JPX is missing. But it's the same (kindof).
Be patient... will be fixed soon...
Tilman
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org
JPX Extraction Issues
Posted by bob swanson <bo...@gmail.com>.
I still cannot get it to work. I don't know what I'm
doing wrong. Can anyone look at my problem?
I have uploaded a bundle of files to:
http://www.mediafire.com/file/z204l4e06jti2j7/JPX.zip
There is a README file in the bundle.
Many thanks to everyone who is involved
with maintaining this excellent product.
Bob Swanson
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org
Re: JPX ImageWriter
Posted by Tilman Hausherr <TH...@t-online.de>.
Am 12.06.2017 um 23:41 schrieb bob swanson:
> Thanks for the suggestion! Additional JAR put in classpath.
>
> Got everything except JPX files, with errors:
>
> Jun 12, 2017 3:37:11 PM org.apache.pdfbox.tools.imageio.ImageIOUtil writeImage
> SEVERE: No ImageWriter found for 'jpx' format
That should work with the jai-imageio-jpeg2000-1.3.0.jar file that you
mentioned earlier. Could it be that you removed it?
Tilman
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org
JPX ImageWriter
Posted by bob swanson <bo...@gmail.com>.
Thanks for the suggestion! Additional JAR put in classpath.
Got everything except JPX files, with errors:
Jun 12, 2017 3:37:11 PM org.apache.pdfbox.tools.imageio.ImageIOUtil writeImage
SEVERE: No ImageWriter found for 'jpx' format
Where do I go from there?
Again, many thanks for all the helpful suggestions.
Bob Swanson
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org
Re: Extract images (JAI)
Posted by Tilman Hausherr <TH...@t-online.de>.
Maybe it wants both jars, i.e. also the main jai one.
https://github.com/jai-imageio
Tilman
Am 12.06.2017 um 18:26 schrieb bob swanson:
> 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
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org
re: Extract images (JAI)
Posted by bob swanson <bo...@gmail.com>.
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
Re: JAI Dependency During Image Extraction
Posted by Thad Humphries <th...@gmail.com>.
On Sat, Jun 10, 2017 at 5:03 PM, <rd...@swansongrp.com> wrote:
> Trying to extract images from a PDF. Got the following
> error(s):
>
> Jun 10, 2017 3:00:16 PM org.apache.pdfbox.contentstream.PDFStreamEngine
> operatorException
> SEVERE: Cannot read JPEG2000 image: Java Advanced Imaging (JAI) Image I/O
> Tools are not
> installed
>
> I went to the PDFBox web page:
>
> https://pdfbox.apache.org/2.0/dependencies.html
>
> which indicates that I need to install the appropriate
> jar:
>
> Reading JPEG 2000 (JPX) images: JAI Image I/O Tools Core
>
> However, when I clicked on the link for JAI in the "dependencies.html"
> page, the java.net webpage indicated that:
>
> "We're sorry the java.net site has closed."
>
> Any suggestions on where to find the JAI code?
>
> Thanks,
>
> Bob Swanson
>
> Working environment: Running pdfbox-app-2.0.6.jar under Linux (Ubuntu)
>
https://mvnrepository.com/artifact/com.github.jai-imageio/jai-imageio-jpeg2000
--
"Hell hath no limits, nor is circumscrib'd In one self-place; but where we
are is hell, And where hell is, there must we ever be" --Christopher
Marlowe, *Doctor Faustus* (v. 121-24)