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();
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.