设计思路来源:GhostScript实现镜像打印输出_操作系统_网上学园_科技时代_新浪网 (sina.com.cn),Ghostscript, Ghostview and GSview (wisc.edu)
准备:
- Ghostscript : Downloads
- Obtaining GSview 5.0 (ghostgum.com.au)
- RedMon - Redirection Port Monitor (ghostgum.com.au)
redmon虚拟机打印设置
- 安装后,添加本地打印机,创建新端口 “Redirected Port”,端口名称(Port Name)默认,选择有镜像打印功能的打印机型号进行添加(例子使用了 HP Color LaserJet 2800 Series PS )。
- 虚拟打印机默认设置,开启镜像打印功能。
安装环境
- 安装 Ghostscript 和 GSview 。
- 安装 Ghostscript 后确保 “Generate cidfmap for Windws CJK TrueType fonts” 开启。
- 虚拟打印机端口配置中,重定向到 GSview 的
gsprint.exe程序中。 - 配置
gsprint.exe程序执行参数:-noquery打印时不输出日志-printer "name"指定实际打印机名称-ghostscript "name"指定 Ghostscript 主程序路径- 在所有参数最后 单独 添加一个
-参数作为结尾。 - (可选)“Run” 运行方式 “Hidden” 隐藏。
通过虚拟机打印
打印时选择“虚拟打印机”进行打印。Redmon 不支持 Windows10 及以上的系统,解决方法见 clawPDF