View Full Version : Sort multipage tif

13.03.2017, 09:36 AM

I created a working script allowing me to scan documents as multipage tif and convert them into a multipage pdf.

@Echo off

set jahr=%date:~-4%
set monat=%date:~-7,2%
set tag=%date:~-10,2%
set stunde=%time:~0,2%
set minute=%time:~3,2%
set sekunde=%time:~6,2%

del /q "C:\Users\%UserName%\Documents\Scanned Documents\ScanfileTemp.tif"

"C:\Program Files\IrfanView\i_view32.exe" /batchscan=(ScanfileTemp,0,0,0,0,C:\Users\%UserName %\Documents\Scanned Documents,tif,1)

"C:\Program Files\IrfanView\i_view32.exe" C:\Users\%UserName%\Documents\Scanned Documents\ScanfileTemp.tif /convert=Scan_%jahr%_%monat%_%tag%_%stunde%_%minute %_%sekunde%.pdf /silent


I have two questions:

How can I set this option in the batch script (Should be called something like: Feed method: 2-sided(binding left/right))
Is there a way to sort the images within the multipage tif file after scanning? If I scan 2 duplex pages in the order 1.1, 1.2, 2.1, 2.2 they are saved in this order 2.2, 2.1, 1.2, 1.1. I would like to save them in the order I scanned them (1.1, 1.2, 2.1, 2.2).


Thank you!