Hi all!
I've used iText to merge some pdf's (byte[]) and are now trying to show the result from a servlet.
Should be quite easy right..?
 
My code:
 
String CONTENT_TYPE = "application/pdf";
byte[] pdfByteArray = pdfAssembler.getPdf();
 
response.setContentType( CONTENT_TYPE );
response.setHeader( "Content-disposition", "inline; filename=document_" + id + ".pdf" );
response.setHeader( "Cache-Control", "no-store" );
response.setContentLength( pdfByteArray.length );
 
ServletOutputStream out = response.getOutputStream();
out.write( pdfByteArray );
out.flush();
out.close();
 
 
It woks in Netscape 7.1...
 
I'll just get a blank page in IE6...
 
Regards
Erik

Reply via email to