Hi Steve,
Sorry about my confusion as to your identity.
I've placed a copy of the original pdf in the source folder and run the following:
# Book Scan Wizard Script
#
http://bookscanwizard.sourceforge.net
# /Users/essin/BookScanWork
# *** Load Files ***
# the source directory
LoadLRImages = source
# Override source DPI
SetSourceDPI = 300
# The Destination directory
SetDestination = pdf
# *** Remove Pages ***
# *** Perspective ***
# *** Crops ***
Pages = left
Crop = 26,20, 1516,2400
Pages = right
Crop = 1600,20, 3126,2400
# *** Filters ***
Pages = all
Color = gray
Levels = 59 60
#Change to a binary (black & white) image, with a clipping point of 60%
#Color=bw 60
# *** Scaling ***
Pages = all
# Overrides the destination DPI to 300 (does not scale the image)
SetDestinationDPI = 300
# This will ensure the left and right pages are exactly the same size.
ScaleToFirst=
# *** Output ***
Pages=all
CreatePDF = BookScanWork.pdf
---
I've tried it with loadImages and LoadRLImages as well and get the following errors/messages:
Caused by: Crop area (26,20, 1516,2400 is outside 0,0, 1 1
at net.sourceforge.bookscanwizard.op.Crop.performOperation(Crop.java:85)
at net.sourceforge.bookscanwizard.Operation.performOperations(Operation.java:355)
at net.sourceforge.bookscanwizard.BSW.processFile(BSW.java:524)
at net.sourceforge.bookscanwizard.BSW.access$500(BSW.java:72)
at net.sourceforge.bookscanwizard.BSW$ProcessImages$1.call(BSW.java:413)
at net.sourceforge.bookscanwizard.BSW$ProcessImages$1.call(BSW.java:410)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
and
java.lang.IllegalArgumentException: Numbers of source Raster bands and source color space components do not match
at java.awt.image.ColorConvertOp.filter(ColorConvertOp.java:482)
at com.sun.media.jai.opimage.ColorConvertOpImage.computeRectNonColorSpaceJAI(ColorConvertOpImage.java:369)
at com.sun.media.jai.opimage.ColorConvertOpImage.computeRect(ColorConvertOpImage.java:289)
at javax.media.jai.PointOpImage.computeTile(PointOpImage.java:919)
at com.sun.media.jai.util.SunTileScheduler.scheduleTile(SunTileScheduler.java:912)
at javax.media.jai.OpImage.getTile(OpImage.java:1139)
at javax.media.jai.PointOpImage.computeTile(PointOpImage.java:916)
at com.sun.media.jai.util.SunTileScheduler.scheduleTile(SunTileScheduler.java:912)
at javax.media.jai.OpImage.getTile(OpImage.java:1139)
at javax.media.jai.PlanarImage.copyData(PlanarImage.java:2356)
at javax.media.jai.PlanarImage.copyData(PlanarImage.java:2292)
at javax.media.jai.RenderedOp.copyData(RenderedOp.java:2296)
at net.sourceforge.bookscanwizard.gui.MainFrame.setImage(MainFrame.java:713)
at net.sourceforge.bookscanwizard.BSW.preview(BSW.java:351)
at net.sourceforge.bookscanwizard.gui.GuiActions.cursorActionPerformed(GuiActions.java:205)
at net.sourceforge.bookscanwizard.gui.UserFeedbackHelper.actionPerformed(UserFeedbackHelper.java:46)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
at java.awt.Component.processMouseEvent(Component.java:6505)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3320)
at java.awt.Component.processEvent(Component.java:6270)
at java.awt.Container.processEvent(Container.java:2229)
at java.awt.Component.dispatchEventImpl(Component.java:4861)
at java.awt.Container.dispatchEventImpl(Container.java:2287)
at java.awt.Component.dispatchEvent(Component.java:4687)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
at java.awt.Container.dispatchEventImpl(Container.java:2273)
at java.awt.Window.dispatchEventImpl(Window.java:2719)
at java.awt.Component.dispatchEvent(Component.java:4687)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:713)
at java.awt.EventQueue.access$000(EventQueue.java:104)
at java.awt.EventQueue$3.run(EventQueue.java:672)
at java.awt.EventQueue$3.run(EventQueue.java:670)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
at java.awt.EventQueue$4.run(EventQueue.java:686)
at java.awt.EventQueue$4.run(EventQueue.java:684)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:683)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:244)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:147)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:139)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:97)
Exception in thread "pool-1-thread-416" java.lang.NullPointerException
at net.sourceforge.bookscanwizard.gui.ThumbTable$ImageRequest.run(ThumbTable.java:381)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
If I comment out the crops then I get:
Caused by: java.lang.IllegalArgumentException: The specified ColorModel is incompatible with the image SampleModel.
at javax.media.jai.PlanarImage.setImageLayout(PlanarImage.java:541)
at javax.media.jai.RenderedOp.createRendering(RenderedOp.java:878)
at javax.media.jai.RenderedOp.getRendering(RenderedOp.java:899)
at javax.media.jai.RenderedOp.createInstance(RenderedOp.java:810)
at javax.media.jai.RenderedOp.createRendering(RenderedOp.java:878)
at javax.media.jai.RenderedOp.getWidth(RenderedOp.java:2190)
at net.sourceforge.bookscanwizard.op.ScaleToFirst.performOperation(ScaleToFirst.java:38)
at net.sourceforge.bookscanwizard.Operation.performOperations(Operation.java:355)
at net.sourceforge.bookscanwizard.BSW.processFile(BSW.java:524)
at net.sourceforge.bookscanwizard.BSW.access$500(BSW.java:72)
at net.sourceforge.bookscanwizard.BSW$ProcessImages$1.call(BSW.java:413)
at net.sourceforge.bookscanwizard.BSW$ProcessImages$1.call(BSW.java:410)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
I must be missing something.
Thanks,
Dan