title: How to Export pdf to OutputStream with wkhtmltopdf in java
body: <p>I use wkhtmltopdf in my java project with ProccessBuilder and Process:</p>
  
  <p><code>ProcessBuilder pb = new ProcessBuilder("wkhtmltopdf.exe", "input.html", "output.pdf");
  Process process = pb.start();</code></p>
  
  <p>This solution uses a html file as input and save output as pdf file on disk.
  But my html isn't a file, it's an OutputStream and I want to create pdf file on fly and don't want save it on disk.</p>
  
  <p>is there a way for passing parameter with OutputStream and getting result as another OutputStream?</p>