pdf页面大小的清晰打印 [英] pdfSharp printing with page size

查看:244
本文介绍了pdf页面大小的清晰打印的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用PdfSharp dll打印pdf.这是我正在使用的代码.这对我来说很好.

I am using PdfSharp dll to print a pdf. This is the code that i am using. This works fine for me.

PdfFilePrinter.AdobeReaderPath = "C:\\Program Files\\Adobe\\Reader 9.0\\Reader\\AcroRd32.exe";
PdfFilePrinter printer = new PdfFilePrinter("C:\\sample.pdf", "HP LaserJet P1007");
printer.Print();

一如既往!!! 但是"我无法将页面大小如A4应用于上述代码.因此,有什么方法可以在这里实现代码的页面大小.

As always!!!! "BUT" I am not able to apply page size like A4 to the above code. So is there any way that i can implement page size to the code here.

预先感谢

推荐答案

PdfFilePrinter启动AcroRd32.exe,并在命令行中传递文件名和打印机名.恐怕命令行不支持选择纸张格式或其他高级选项.

PdfFilePrinter launches AcroRd32.exe and passes file name and printer name in the command line. I'm afraid the command line does not support selection of paper format or other advanced options.

这篇关于pdf页面大小的清晰打印的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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