Windows 10 从命令行打印到 PDF [英] Windows 10 Print to PDF from command-line

查看:40
本文介绍了Windows 10 从命令行打印到 PDF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我现在正在纠正我的学生的作业,我想自动执行一个我一直需要做的烦人的步骤.
在注释他们的 PDF 解决方案后,我需要将它们打印到 PDF 文件中,以便将我的注释烘焙到 PDF 中,以便它们可以包含在 LaTeX 中.现在我必须手动选择Microsoft Print to PDF"并输入带有前导下划线的 PDF 名称(这是我自动生成的 LaTeX 文件所期望的).这对于 30 多个文件来说很烦人.
所以我想在一个批处理脚本中自动为所有的 PDF 发布这个,以尽量减少我对简单双击的努力.我已经看到这是可能的,例如C# (这里),但我想要一个带有简单批处理脚本的解决方案.
这个可以吗?

I'm correcting assignments from my students right now and I'd like to automate an annoying step I always have to do.
After annotating their PDF solutions, I need to Print them to PDF files in order to bake my annotations into the PDF so that they can be included in LaTeX. Right now I have to manually choose "Microsoft Print to PDF" and enter the PDFs name with a leading underscore (which is what my automatically generated LaTeX files expect). This gets annoying for 30+ files.
So I'd like to issue this in a batch-script automatically for all the PDFs to minimize my efforts to a simple double-click. I have seen that this is possible with e.g. C# (Here), but I'd like a solution with a simple batch script.
Can this be done?


我发现的 C# 代码实际上并没有完成工作.您不能以这种方式打印现有 PDF.我需要使用 Spire.PDF 来做到这一点.然而,免费版会弄乱 PDF;我可以在 NuGet 中下载完整"版本,但这会在任何 PDF 的开头生成免责声明,它仍然无法处理我在 Adob​​e Reader DC 中绘制的内容.所以 C# 真的不是一个选项,我需要一个命令行解决方案.


The C#-Code I found actually does not get the Job done. You can't print existing PDFs that way. I'd need to use Spire.PDF to do that. The Free Version however messes up the PDF; I can download the "Full" version in NuGet, this however generates a disclaimer at the beginning of any PDF, and it still can't handle things I draw in Adobe Reader DC. So C# really is not an option, I need a command-line solution.

推荐答案

你最好安装 pdfcreator

并使用 命令行选项

这篇关于Windows 10 从命令行打印到 PDF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆