Skip to content

Commit

Permalink
auto depass pdf
Browse files Browse the repository at this point in the history
  • Loading branch information
qinlili23333 committed Dec 29, 2022
1 parent 0c9eba6 commit 9cd6102
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Launch.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@echo off
set VERSION=Release1.1.2
set VERSION=Release1.1.3
title [启动中...]Reine Print [%VERSION%]
echo Reine Print
echo 开发:琴梨梨
Expand Down
File renamed without changes.
10 changes: 8 additions & 2 deletions printmodule/pdf/print.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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%


Expand All @@ -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
Expand Down

0 comments on commit 9cd6102

Please sign in to comment.