Originally Posted by wiffel
Did you cut-copy-paste part of the code into your config.lua? My latest version does not have any code on line 86 (except for the END statement). So, it's hard for me to see what is going wrong.
Sorry my mistake. I added 5 lines different line sized since I have multiple reading devices. They where commented out however.
I've re-ran the tool with your unmodified config.lua
The problem code is line 81. Color is red.
"lua error config.lua:81:attempting to compare nil with a number"
Here is the error
function outputImage(image, outdir, pageNo, rectNo)
if output_to_pdf then ----if output_to_pdf and outpdf:isValid() then
if (book_pages.nr_of_pages < nr_of_pages_per_pdf_book) then