# printermonitorsvc **Repository Path**: cjc_itframe/printermonitorsvc ## Basic Information - **Project Name**: printermonitorsvc - **Description**: 自动化打印插件 1. 轻量级打印服务,实时监控,自动生成桌面快捷方式 2. 一键运行打印服务,系统环境要求 (.NETFramework4.5+) 3. 电脑需要安装福昕阅读器,并设置为默认 - **Primary Language**: C# - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 3 - **Created**: 2021-03-22 - **Last Updated**: 2025-11-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 打印插件 ## 概述 自动化打印插件 1. 轻量级打印服务,实时监控,自动生成桌面快捷方式 2. 一键运行打印服务,系统环境要求 (.NETFramework4.5+) 3. 电脑需要安装福昕阅读器,并设置为默认 ## API使用 PS:所有请求的请求头可添加id用来追踪日志 Header=>【id:随机ID】(非必填,用来跟踪日志) 1.获取本机所有打印机(GET) http://127.0.0.1:6789/api/Printer 2.获取打印配置文件(GET) http://127.0.0.1:6789/api/Config 3.保存打印配置文件,为兼容旧服务参数以QueryString方式传递(POST) http://127.0.0.1:6789/api/Config?config={"面单8*8": "Foxit Reader PDF Printer"} 4.打印PDF(GET) http://127.0.0.1:6789/api/PrintPdf?serviceType=1&pdfurl=http://***.pdf&printCount=2 PS: *serviceType:自定义业务类型如(面单8*8)(必填) *pdfurl:面单URL地址(必填) printCount:打印数量(非必填,默认1) 5.批量打印PDF(POST) http://127.0.0.1:6789/api/PrintPdf?id=随机ID 参数: [ { "serviceType": "面单8*9", "fileUrl": "http://***.pdf", "printCount":2 }, { "serviceType": "面单10*7", "fileUrl": "http://***.pdf", "printCount":2 } ] PS: *serviceType:自定义业务类型如(面单8*8)(必填) *fileUrl:面单URL地址(必填) printCount:打印数量(非必填,默认1)