unpaper option --output-pages 2
Brought to you by:
tobias-elze
I'd like to use pdfsandwich with a scanned book and I'd like to split each double page. It is possible with unpaper using "--output-pages 2"
So I tried :
pdfsandwich -verbose -layout double -unpo "--output-pages 2" mypdf.pdf
It crashes with this unpaper error : not enough output files given.
Here is the complete error log :
unpaper --overwrite --output-pages 2 --no-grayfilter --layout double /tmp/pdfsandwich_tmpe925ef/pdfsandwich75342d.pbm /tmp/pdfsandwich_tmpe925ef/pdfsandwichae8d3c_unpaper.pbm
unpaper: error: not enough output files given.
Try 'man unpaper' for more information.
ERROR: Command "unpaper --overwrite --output-pages 2 --no-grayfilter --layout double /tmp/pdfsandwich_tmpe925ef/pdfsandwich75342d.pbm /tmp/pdfsandwich_tmpe925ef/pdfsandwichae8d3c_unpaper.pbm" failed.
Terminating pdfsandwich. All temporary files are kept.
Unpaper need two files in output to work with "--output-pages 2", it want something like :
unpaper --overwrite --output-pages 2 --no-grayfilter --layout double /tmp/pdfsandwich_tmpe925ef/pdfsandwich75342d.pbm /tmp/pdfsandwich_tmpe925ef/pdfsandwichae8d3c_1_unpaper.pbm /tmp/pdfsandwich_tmpe925ef/pdfsandwichae8d3c_2_unpaper.pbm
pdfsandwich would be very cool with this option ;)