简体   繁体   English

在服务器端将PDF打印到默认打印机

[英]Print PDF in server side to default printer

I created web application using ASP.NET CORE 2 and used DinkToPdf to create and download the PDF to target directory. 我使用ASP.NET CORE 2创建了Web应用程序,并使用DinkToPdf创建了PDF并将其下载到目标目录。 It is working really well to create and save PDFs. 创建和保存PDF确实工作得很好。 Now I want to use server side and print the PDF to target printer in the office. 现在,我想使用服务器端并将PDF打印到办公室中的目标打印机。 I couldn't find any solution to do this. 我找不到任何解决方案来做到这一点。 Please help me. 请帮我。

Are you looking to integrate this functionality into your software? 您是否希望将此功能集成到软件中? If so, there are several PDF libraries on the market with printing capabilities, some more reliable and full-featured than others. 如果是这样,则市场上有几个具有打印功能的PDF库,其中一些库比其他库更可靠,功能更全。

If you're looking for a Windows command line utility to print PDFs to a target printer, you may be interested in PDF2PRINT , which allows you to do exactly that, as well as set optional parameters like duplex, collation, custom page ranges, number of copies, etc. 如果您正在寻找Windows命令行实用程序以将PDF打印到目标打印机,您可能会对PDF2PRINT感兴趣,它可以使您做到这一点,并设置可选参数,例如双面打印,排序规则,自定义页面范围,编号副本等

For future reference, questions like these should be posted in the Software Recommendations forum. 为了将来参考,应将此类问题张贴在“ 软件建议”论坛中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM