Skip to content

Commit 9cd6102

Browse files
committed
auto depass pdf
1 parent 0c9eba6 commit 9cd6102

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

Launch.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@echo off
2-
set VERSION=Release1.1.2
2+
set VERSION=Release1.1.3
33
title [启动中...]Reine Print [%VERSION%]
44
echo Reine Print
55
echo 开发:琴梨梨

printmodule/pdf/print.bat

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ cd %~dp0
66
set /p backend=< ..\..\config\pdf-backend
77
if %backend%==Acrobat goto Acroprint
88
echo Printing file: %*
9-
PDFtoPrinter.exe ..\..\pending\%*
9+
echo Pre depass file...
10+
..\caj\mutool.exe clean -D ..\..\pending\%* temp.pdf
11+
PDFtoPrinter.exe temp.pdf
12+
del /f /s /q temp.pdf
1013
exit %ERRORLEVEL%
1114

1215

@@ -16,7 +19,10 @@ if not exist acrobat.location goto find
1619
:return
1720
for /f "delims=" %%a in ('type acrobat.location') do set acrobat=%%a
1821
echo Printing file: %*
19-
%acrobat% /n /t ..\..\pending\%*
22+
echo Pre depass file...
23+
..\caj\mutool.exe clean -D ..\..\pending\%* temp.pdf
24+
%acrobat% /n /t temp.pdf
25+
del /f /s /q temp.pdf
2026
exit %ERRORLEVEL%
2127

2228
:find

0 commit comments

Comments
 (0)