I have a tiff file with several hundred pages in it. My goal is to break it into many files each containing two pages. i.e. every two pages save a new file. It is basically a stack of single sheet documents scanned front and back.
I'm working on a C# Forms (visual studio 2008) application to automate the process.
My initial thought is to use Graphicsmagick to split every page into a seperate file then step through the files to join them back to geather again two pages at a time.
I have the split process working by calling a command like this.
gm convert largeinputfile.tif +adjoin singlepageoutput%d.tif
When I try and join just two of the pages back togeather again with a command like this
gm convert -page A4 -append singlepageoutput0.tif singlepageoutput1.tif New2pageImage.tif
This creates one long document containing both pages but no page break.
I have tried seveveral things with the -page
option but I'm just guessing and it's not having much effect.
I'm very close to a working solution but stuck on the last bit. Any ideas?
Thanks in advance David