title: open PDF File with parameters
body: <p>i am working on a java based tool, which should search for PDF files on selected directories and which should search for special words/sentences in this PDF files. After that a JList shows the files which fits and with a double-click on one of these entries the PDF Reader (Adobe Reader) should open this file directly on the page where the word/sentence appeares.</p>
  
  <p>I tried two different things.</p>
  
  <p>Runtime.exec:</p>
  
  <pre><code>try{
      Runtime.getRuntime().exec("rundll32" + " " + "url.dll,FileProtocolHandler /A page=4" + " " + o.toString()); 
  }catch(IOException ex) { 
      ex.printStackTrace(); 
  }
  </code></pre>
  
  <p>Desktop open:</p>
  
  <pre><code>if(Desktop.isDesktopSupported()) {
      try{
          Desktop d = Desktop.getDesktop();
          d.open(new File(o.toString()));
      }catch(IOException ex) {
          ex.printStackTrace();
      }
  }
  </code></pre>
  
  <p>Is there a way to start the PDF Reader with parameters like "page=4" to jump directly to the right page?</p>
  
  <p>Thanks in advance</p>