Hello,
I'm trying to print single page from PDF file using adobe reader.but below code is printing whole file. any one please suggest me to print single page.
Process proc = new Process();
proc.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
proc.StartInfo.Verb = "print";
proc.StartInfo.FileName =@"C:\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.exe";
proc.StartInfo.Arguments = String.Format("/h /p \"Page={0}\" \"{1}\"",page, pdfFileName);
proc.StartInfo.UseShellExecute = false;
proc.StartInfo.CreateNoWindow = true;
proc.Start();
below details for adobe reader argument option
* /n - Launch a new instance of Reader ever if one is already open
* /s - Don't show the splash screen
* /o - Don't show the open file dialog
* /h - Open as a minimized window
* /p - Open and go straight to the print dialog
* /t - Print the file the specified printer.
Pandiyan T
What I have tried:
i have tried to print single page in PDF file. but it's printing whole PDF file. they provide option for open particular file but not for print option.