From 9cd6102ccfc3a45dad24063dc826b76d5150786f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=90=B4=E6=A2=A8=E6=A2=A8?= <24567775+qinlili23333@users.noreply.github.com> Date: Thu, 29 Dec 2022 20:37:21 +1000 Subject: [PATCH] auto depass pdf --- Launch.bat | 2 +- config/{detectonline.enable => detectonline.disable} | 0 printmodule/pdf/print.bat | 10 ++++++++-- 3 files changed, 9 insertions(+), 3 deletions(-) rename config/{detectonline.enable => detectonline.disable} (100%) diff --git a/Launch.bat b/Launch.bat index 5a4075b..49dd91f 100644 --- a/Launch.bat +++ b/Launch.bat @@ -1,5 +1,5 @@ @echo off -set VERSION=Release1.1.2 +set VERSION=Release1.1.3 title [Æô¶¯ÖÐ...]Reine Print [%VERSION%] echo Reine Print echo ¿ª·¢£ºÇÙÀæÀæ diff --git a/config/detectonline.enable b/config/detectonline.disable similarity index 100% rename from config/detectonline.enable rename to config/detectonline.disable diff --git a/printmodule/pdf/print.bat b/printmodule/pdf/print.bat index 4f08f2d..bc3ace9 100644 --- a/printmodule/pdf/print.bat +++ b/printmodule/pdf/print.bat @@ -6,7 +6,10 @@ cd %~dp0 set /p backend=< ..\..\config\pdf-backend if %backend%==Acrobat goto Acroprint echo Printing file: %* -PDFtoPrinter.exe ..\..\pending\%* +echo Pre depass file... +..\caj\mutool.exe clean -D ..\..\pending\%* temp.pdf +PDFtoPrinter.exe temp.pdf +del /f /s /q temp.pdf exit %ERRORLEVEL% @@ -16,7 +19,10 @@ if not exist acrobat.location goto find :return for /f "delims=" %%a in ('type acrobat.location') do set acrobat=%%a echo Printing file: %* -%acrobat% /n /t ..\..\pending\%* +echo Pre depass file... +..\caj\mutool.exe clean -D ..\..\pending\%* temp.pdf +%acrobat% /n /t temp.pdf +del /f /s /q temp.pdf exit %ERRORLEVEL% :find