Announcement

Collapse
No announcement yet.

Sort multipage tif

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Sort multipage tif

    Hello,

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

    Code:
    @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
    
    PAUSE
    I have two questions:
    1. How can I set this option in the batch script (Should be called something like: Feed method: 2-sided(binding left/right))
    2. 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).


    Click image for larger version

Name:	2017-03-13 11_24_30-clover.png
Views:	1
Size:	13.2 KB
ID:	84903

    Thank you!

    Jonas
    Last edited by Bhikkhu Pesala; 13.03.2017, 11:21 AM.
Working...
X