Skip to content

Commit

Permalink
Supports spaces in path now
Browse files Browse the repository at this point in the history
  • Loading branch information
Chaiavi authored Jan 20, 2022
1 parent 926e4a1 commit 828c850
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drop_pdfs_on_me.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 828c850

Please sign in to comment.