Open a specific page in a PDF file c#

thijs1095 picture thijs1095 · Mar 28, 2014 · Viewed 7.7k times · Source

I open a pdf file when my form is loaded with the following code:

Process process = new Process();
ProcessStartInfo startInfo = new ProcessStartInfo();
process.StartInfo = startInfo;
startInfo.FileName = @"F:\STAGE\test.pdf";
process.Start();

This works fine but now I want to open a specific page. For example page number 5 of the document test.pdf? Does any one have an idea? Tried some stuff but dind't work!

Thanks!

Answer

Ted picture Ted · Mar 28, 2014

Try

process.StartInfo.Arguments = "/A \"page=n\" \"F:\\STAGE\\test.pdf"";

changing n to the page number you want