There are many command line tools to convert a 2-up PDF, where two actual pages from a book are combined to form 1 page in a PDF, into a single page format, where 1 PDF page is 1 actual page. The simplest of these is MuTools poster command. There is an old discussion about various methods of doing this.
I am working with reproductions of old documents which are not always split exactly down the center, but up to 5% to the right or left of it. Using the poster tool means that I (and more importantly OCR) can’t read text if it goes over the central split line.
I need a tool that can let each odd page take 5%-10% of the image from the even side and vice versa, to ensure that all text that crosses the line in the original is readable in the PDF. I’ve played about with pdfjam, but with little success. If possible I want to avoid using ImageMagick, which is very slow compared to other tools when producing lossless output.