batch processing
DJpuclik opened this issue · comments
DJpuclik commented
how to modify "set PDFFILE=%~nx1" to process all pdfs in a directory starting with the name 2000 for example?
therealjoeblow commented
Edit pdf-to-jpg-32.bat and pdf-to-jpg-64.bat to read as follows:
pdf-to-jpg-32.bat
@echo off
set bat_file=%~dp0%pdf-to-jpg.bat
if [%1]==[] goto :eof
:loop
call "%bat_file%" "%~f1" bin/gswin32c.exe
shift
if not [%1]==[] goto loop
pdf-to-jpg-64.bat
@echo off
set bat_file=%~dp0%pdf-to-jpg.bat
if [%1]==[] goto :eof
:loop
call "%bat_file%" "%~f1" bin/gswin64c.exe
shift
if not [%1]==[] goto loop
And then in pdf-to-jpg.bat, remove the last line that says "pause".
Then drag and drop your batch of files onto either of pdf-to-jpg-32.bat or pdf-to-jpg-64.bat (instead of pdf-to-jpg.bat), whichever one is compatible with your OS version (32bit or 64bit).