命令行 Acrobat Reader - 转换字符!
在 .NET 项目中,我们使用 Acrobat Reader 和命令行选项“/t”,它允许直接将 pdf 打印到所需的打印机。为了开始打印,我们使用一个带有相应 StartInfo.arguments 的 Process 对象,它是这样启动的:
Process p = new Process();
[...]
p.Start();
System.Threading.Thread.Sleep(printerTimeout);
if (!p.HasExited)
{
p.Kill();
System.Threading.Thread.Sleep(5000);
}
碰巧必须在同一个循环中打印多个 pdf 文件。
当只打印一份pdf时,没有问题。但对于特定的安装,当必须打印多个 pdf 文件时,某些页面会发生字符移位(事实上,所有打印的字符都移位为一个 ASCII 码,即A 变为 B,B 变为 C 等等)。但原始 pdf 是正确的,并且不包含任何移位的字符。
有办法解决这个问题吗?
谢谢
In a .NET project we use Acrobat Reader with the command line option "/t" which allows to directly print a pdf to the desired printer. To start the printing we use a Process object with corresponding StartInfo.arguments and it is launched like this:
Process p = new Process();
[...]
p.Start();
System.Threading.Thread.Sleep(printerTimeout);
if (!p.HasExited)
{
p.Kill();
System.Threading.Thread.Sleep(5000);
}
It happens that more than one pdf file must be printed in the same loop.
When only one pdf is printed, no problem. But for a specific installation and when more than one pdf files must be printed, some pages have shifted characters (in fact, all characters printed are shifted to one ASCII code, i.e. A becomes B, B becomes C etc.). But the originals pdf are correct and don't contain any shifted characters.
Is there a way to resolve this issue?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论