title: Open a PDF file on a remote server on click of PrintPreview using java
body: <p>I am converting my XHTML pages, which are part of an application form filled by the user, into PDF files and saving them on the remote server. I have 6 parts in the application form each part is one XHTML page. </p>
  
  <p>Once user fills up to 4 parts , upon click of continue button in 4 part/page, I am generating the PDF and saving it to remote server. On 5th part/page I have show a <strong>"PrintPreview "</strong> button. Once user clicks on it I have to get Saved PDF and open it in the PDF format. </p>
  
  <p>I am able to read the PDF using InputStream but I don't know how to Open it in the java. How Can I do that using Java?</p>