开发者

pdfSharp printing with page size

开发者 https://www.devze.com 2023-03-11 23:44 出处:网络
I am using PdfSharp dll to print a pdf. This is the cod开发者_如何学Goe that i am using. This works fine for me.

I am using PdfSharp dll to print a pdf. This is the cod开发者_如何学Goe 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();

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.

Thanks in advance


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号