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

Esteban Nicolas Ruiz commented on PDFBOX-3769:
----------------------------------------------

Great! I have tried with the provided jar and also with modifying my jar as 
suggested and it works fine in both cases.

The difference in the size of the jars is mostly due to some sample files in 
the res folder (org\jpedal\jbig2\examples\viewer\res\) that are not included in 
jbig2.jar.

I have performed some performance meassures and compared the output with some 
sample files (three small ones, accounting for 8 pages and a big one with 982 
pages):

Output files are exactly the same regardless of the jar used (i.e.: my own 
compiled and modified jar, levigo-jbig2-imageio-1.6.5.jar  and provided 
jbig2.jar).

Performance seems to be better when using JBIG2-Image-Decoder instead of 
levigo-jbig2-imageio (results for the 982 pages pdf): 

time.jbig2 real    5m56,164s (provided jbig2.jar)
time.levigo real    7m3,032s (levigo, but I was watching a video)
time.levigo2 real    6m41,841s (levigo, again, avoided using the computer)
time.myjbig2 real    5m52,687s (my compiled jar)
time.no.jbig real    1m6,441s (no jars -i.e.: jbig2 not supported-)




> Cannot read JBIG2 image when JBIG2-Image-Decoder is in path
> -----------------------------------------------------------
>
>                 Key: PDFBOX-3769
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3769
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 2.0.5
>         Environment: Windows 10
>            Reporter: Esteban Nicolas Ruiz
>              Labels: jbig2
>         Attachments: JBIG2-Image-Decoder.jar, jbig2.jar, jbig2.pdf
>
>
> I understand from the "Dependencies" page 
> (https://pdfbox.apache.org/2.0/dependencies.html) that "JBIG2 ImageIO" and 
> "JBIG2-Image-Decoder" should be interchangeable but I get the following error 
> message when using JBIG2-Image-Decoder:
> GRAVE: Cannot read JBIG2 image: jbig2-imageio is not installed
> Command line is:
> java -cp 
> "JBIG2-Image-Decoder.jar;bcmail-jdk15on-1.54.jar;bcpkix-jdk15on-1.54.jar;bcprov-jdk15on-1.54.jar;commons-logging-1.2.jar;diffutils-1.3.0.jar;fontbox-2.0.5.jar;hamcrest-core-1.3.jar;jai-imageio-core-1.3.1.jar;jai-imageio-jpeg2000-1.3.0.jar;junit-4.12.jar;JBIG2-Image-Decoder.jar;pdfbox-app-2.0.5.jar"
>  org.apache.pdfbox.tools.PDFToImage jbig2.pdf
> If I change JBIG2-Image-Decoder.jar for levigo-jbig2-imageio-1.6.5.jar then 
> conversion is successfull:
> java -cp 
> "levigo-jbig2-imageio-1.6.5.jar;bcmail-jdk15on-1.54.jar;bcpkix-jdk15on-1.54.jar;bcprov-jdk15on-1.54.jar;commons-logging-1.2.jar;diffutils-1.3.0.jar;fontbox-2.0.5.jar;hamcrest-core-1.3.jar;jai-imageio-core-1.3.1.jar;jai-imageio-jpeg2000-1.3.0.jar;junit-4.12.jar;JBIG2-Image-Decoder.jar;pdfbox-app-2.0.5.jar"
>  org.apache.pdfbox.tools.PDFToImage jbig2.pdf



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to