From 828c850a998ed3ae272b6fc96e779406b9c5de80 Mon Sep 17 00:00:00 2001 From: Avi Hayun Date: Thu, 20 Jan 2022 18:50:44 +0200 Subject: [PATCH] Supports spaces in path now --- drop_pdfs_on_me.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drop_pdfs_on_me.bat b/drop_pdfs_on_me.bat index 405e19e..304e244 100644 --- a/drop_pdfs_on_me.bat +++ b/drop_pdfs_on_me.bat @@ -25,7 +25,7 @@ for %%x in (%*) do ( set PDFFILE=%%~x set JPGFILE=!PDFFILE:.pdf=-!%%d.jpg - %~dp0%EXECUTABLE% -sDEVICE=jpeg -sOutputFile="!JPGFILE!" -r%DPI% -dNOPAUSE -dFirstPage=%FIRSTPAGE% -dLastPage=%LASTPAGE% -dJPEGQ=%QUALITY% -dGraphicsAlphaBits=%ALPHABITS% -dTextAlphaBits=%ALPHABITS% -dNumRenderingThreads=4 -dBufferSpace=%MEMORY%000000 -dBandBufferSpace=%MEMORY%000000 -c %MEMORY%000000 setvmthreshold -f "!PDFFILE!" -c quit + "%~dp0"%EXECUTABLE% -sDEVICE=jpeg -sOutputFile="!JPGFILE!" -r%DPI% -dNOPAUSE -dFirstPage=%FIRSTPAGE% -dLastPage=%LASTPAGE% -dJPEGQ=%QUALITY% -dGraphicsAlphaBits=%ALPHABITS% -dTextAlphaBits=%ALPHABITS% -dNumRenderingThreads=4 -dBufferSpace=%MEMORY%000000 -dBandBufferSpace=%MEMORY%000000 -c %MEMORY%000000 setvmthreshold -f "!PDFFILE!" -c quit ) echo. & echo PDF pages extracted as JPG files successfully.