From 637c1f30b6ca577e90680dc2de94a7556b4dcb85 Mon Sep 17 00:00:00 2001 From: user1823 <92206575+user1823@users.noreply.github.com> Date: Thu, 21 Mar 2024 19:57:02 +0530 Subject: [PATCH 1/2] Fix error in file path Add missing backslashes --- AppNotes/SumatraPDF/Addins/ExportPng/ExportPng.cmd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AppNotes/SumatraPDF/Addins/ExportPng/ExportPng.cmd b/AppNotes/SumatraPDF/Addins/ExportPng/ExportPng.cmd index 02a5a5c..cf56fca 100644 --- a/AppNotes/SumatraPDF/Addins/ExportPng/ExportPng.cmd +++ b/AppNotes/SumatraPDF/Addins/ExportPng/ExportPng.cmd @@ -96,7 +96,7 @@ End of readme / notes : TL;DR this test should not be needed but for those users that don't RTFM if "%addins%"=="" set "addins=%~dp0" -if not exist "%addins%mutool.exe" echo: & echo Either MuTool.exe or this file are not in correct location & goto HELP +if not exist "%addins%\mutool.exe" echo: & echo Either MuTool.exe or this file are not in correct location & goto HELP if not exist "%~f1" echo: & echo "%~dpn1%~x1" & echo Appears NOT to exist as a valid file & goto HELP : IF you wish to add or restrict input to only certain extensions then edit the file @@ -153,7 +153,7 @@ echo: : IMPORTANT default for png images output is highly recommended as -r 96 : BUT, if intended use is for OCR later, then it should be higher e.g. -r 300 : -"%addins%mutool.exe" draw -r 96 -o "%~dpn1-Page-%%4d.png" "%~f1" "%pages%" +"%addins%\mutool.exe" draw -r 96 -o "%~dpn1-Page-%%4d.png" "%~f1" "%pages%" echo: : pause : Optional, you can comment, change or delete timeout if not wanted (currently 5 seconds) From 0cf9a5fedfec3bd11a69b687183f8cbf728f6921 Mon Sep 17 00:00:00 2001 From: user1823 <92206575+user1823@users.noreply.github.com> Date: Sat, 23 Mar 2024 19:35:52 +0530 Subject: [PATCH 2/2] Update ExportPng.cmd --- AppNotes/SumatraPDF/Addins/ExportPng/ExportPng.cmd | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/AppNotes/SumatraPDF/Addins/ExportPng/ExportPng.cmd b/AppNotes/SumatraPDF/Addins/ExportPng/ExportPng.cmd index cf56fca..af414a2 100644 --- a/AppNotes/SumatraPDF/Addins/ExportPng/ExportPng.cmd +++ b/AppNotes/SumatraPDF/Addins/ExportPng/ExportPng.cmd @@ -96,7 +96,6 @@ End of readme / notes : TL;DR this test should not be needed but for those users that don't RTFM if "%addins%"=="" set "addins=%~dp0" -if not exist "%addins%\mutool.exe" echo: & echo Either MuTool.exe or this file are not in correct location & goto HELP if not exist "%~f1" echo: & echo "%~dpn1%~x1" & echo Appears NOT to exist as a valid file & goto HELP : IF you wish to add or restrict input to only certain extensions then edit the file @@ -153,9 +152,8 @@ echo: : IMPORTANT default for png images output is highly recommended as -r 96 : BUT, if intended use is for OCR later, then it should be higher e.g. -r 300 : -"%addins%\mutool.exe" draw -r 96 -o "%~dpn1-Page-%%4d.png" "%~f1" "%pages%" +mutool draw -r 96 -o "%~dpn1-Page-%%4d.png" "%~f1" "%pages%" echo: : pause : Optional, you can comment, change or delete timeout if not wanted (currently 5 seconds) timeout /t 5 -