I cropped two full book PDFS on Mac OS X 10.6.3. The cropping seems to have worked fine, but I got a bunch of these stack traces dumped to stderr:
java.lang.RuntimeException: JPeg 2000 Images needs the VM parameter -Dorg.jpedal.jai=true switch turned on
at org.jpedal.parser.PdfStreamDecoder.processImage(Unknown Source)
at org.jpedal.parser.PdfStreamDecoder.processImageXObject(Unknown Source)
at org.jpedal.parser.PdfStreamDecoder.DO(Unknown Source)
at org.jpedal.parser.PdfStreamDecoder.processToken(Unknown Source)
at org.jpedal.parser.PdfStreamDecoder.decodeStreamIntoObjects(Unknown Source)
at org.jpedal.parser.PdfStreamDecoder.decodeStreamIntoObjects(Unknown Source)
at org.jpedal.parser.PdfStreamDecoder.decodePageContent(Unknown Source)
at org.jpedal.PdfDecoder.getPageAsImage(Unknown Source)
at org.jpedal.PdfDecoder.getPageAsImage(Unknown Source)
at at.laborg.briss.Briss$ClusterPagesTask.doInBackground(Briss.java:578)
at at.laborg.briss.Briss$ClusterPagesTask.doInBackground(Briss.java:1)
at javax.swing.SwingWorker$1.call(SwingWorker.java:274)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at javax.swing.SwingWorker.run(SwingWorker.java:313)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:637)
Although this is a Runtime Exception it's not critical. I'll will either silent the exception or test whether or not to use JAI.
Hi Andy,
do you have any PDF with JPEG2000 available to share? I'd like to reproduce the problem.
Thank you.