Batch file script to convert PDFs and image files to TIFF -


i need convert multiple pdfs, , image files (jpg, gif, etc.) within folder tiff , move tiff different folder , put original in "archive" folder (within first folder). run every 5-10 minutes using scheduled task within windows.

i have been using program called ghostscript works great, command line using converting pdf example is:

gswin64.exe -o test03.tiff -r720x720 -g6120x7920 -sdevice=tiffg4 test.pdf 

can me out script above?

to convert image tiff without external binaries can use convimg.bat.it still not completed (i need add message , checks) working.accepts 2 arguments source image , target 1 , format taken extension:

call convimg.bat "c:\putin_gay_clown.jpg" "c:\putin_gay_clown.tiff" 

to complete script can use:

@echo off ::: !!! change locations bellow !!! set "pics=c:\pics" set "tiff_folder=c:\tiffs"  %%a in ("%pics%\*jpg" "%pics%\*gif" "%pics%\*png" "%pics%\*bpm") (    call convimg.bat "%%~fa" "%tiff_folder%\%%~na.tiff" )  

as converting pdf tiff don't think possible without external tool.


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -