03-23-2012 07:38 AM
public class MyPDFWebScript extends AbstractWebScript {
@Override
public void execute(WebScriptRequest req, WebScriptResponse res) throws IOException {
res.setContentType("application/pdf");
res.setContentEncoding(null);
res.addHeader("Content-Disposition", "inline;filename=12F002340.PDF");
res.addHeader("Content-Length", Integer.toString(content.length));
res.addHeader("Pragma", "no-cache");
res.getWriter().write(new String(content)); // Here I write my PDF content
}
}
03-23-2012 08:38 AM
res.getOutputStream().write(content);
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.