I use wkhtmltopdf in my java project with ProccessBuilder and Process:
ProcessBuilder pb = new ProcessBuilder("wkhtmltopdf.exe", "input.html", "output.pdf");
Process process = pb.start();
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.
is there a way for passing parameter with OutputStream and getting result as another OutputStream?