You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (Jira)" <ji...@apache.org> on 2019/11/10 06:10:00 UTC

[jira] [Commented] (PDFBOX-4681) doc bug - jpeg2000 support

    [ https://issues.apache.org/jira/browse/PDFBOX-4681?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16971025#comment-16971025 ] 

Tilman Hausherr commented on PDFBOX-4681:
-----------------------------------------

The dependencies are indirectly mentioned, in "Maven dependencies for these components can be found in [parent/pom.xml|https://svn.apache.org/viewvc/pdfbox/trunk/parent/pom.xml?view=markup]". Th extra jpeg2000 jar is not needed if you use jai_imageio.jar directly. I agree about the CLI, my own call .BAT file is something like java -cp "pdfbox-app-3.0.0.jar;lib/*" org.apache.pdfbox.tools.PDFBox .....", and the lib directory has all the jars needed (I use the twelvemonkeys library).

> doc bug - jpeg2000 support
> --------------------------
>
>                 Key: PDFBOX-4681
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4681
>             Project: PDFBox
>          Issue Type: Wish
>          Components: Documentation
>    Affects Versions: 2.0.17
>         Environment: windows documented above but likely cross platform
>            Reporter: Chris Clark
>            Priority: Major
>
> # PDFs with jpeg2000 fail to extract, even if dependencies documented in [https://pdfbox.apache.org/2.0/dependencies.html] are satisfied. There appears to be an additional dependency on [https://github.com/jai-imageio/jai-imageio-jpeg2000], without it get error:
> {code}
> Nov 09, 2019 11:04:07 AM org.apache.pdfbox.contentstream.PDFStreamEngine operatorException
> SEVERE: Cannot read JPEG2000 image: Java Advanced Imaging (JAI) Image I/O Tools are not installed
> {code}
> Additionally for a novice user who is using the command line tool, it is *not* clear how to the use the sample CLI application once the dependencies are satisfied. For example, simply adding the three (3) jar files to the class path is not sufficient, additionally the main jar file needs to be executed without the -jar parameter and the entry classname specified (alternatively the jar file contents need to be merged).
> I found that the following was needed:
>  * jai-imageio-core-1.4.0.jar
>  * jai-imageio-jpeg2000-1.3.0.jar
>  * pdfbox-app-2.0.17.jar
> and then call via:
> {code}
> REM Windows classpath separators used
> java -cp jai-imageio-jpeg2000-1.3.0.jar;jai-imageio-core-1.4.0.jar;pdfbox-app-2.0.17.jar   org.apache.pdfbox.tools.PDFBox ExtractImages   TEST.pdf
> {code}
>  Its possible there is a code solution to this but quick fix is to:
>  # document the jpeg2000 dependency as well as the (already) documented JAI Image I/O need
>  # document how to then use these with the sample pdfbox app with an example



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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