Register now or log in to join your professional community.
I used following code to store the generated pdf file in my server doc.save(new File(".").getAbsolutePath()+"/report.pdf") now i want open/load pdf file after it generated..
Atlast i solved with the following code
Ok.stream(Enumerator.outputStream { os => doc.writeToStream(os) os.close() }).withHeaders( CONTENT_TYPE -> "application/pdf", CONTENT_DISPOSITION -> "attachment; filename=report.pdf" )