How do you return a PDF from a call to a servlet?
I found this example on your site:
[Java]
// Outputs the PDF document to the page object.
document.drawToWeb("MyDocument.pdf");
But there is no parameter declaration which matches this example.
I have tried this declaration:
pdrawToWeb(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.io.OutputStream sOut)
But what is suppose to be passed in as the OutputStream?
I have everything working great when writting to a file but now I need to output from a servlet.
Thanks