You can do it but you may (you will) run into troubles with IE if the
content length is not sent.

Best Regards,
Paulo Soares

> -----Original Message-----
> From: Pritam Dewan [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, January 10, 2003 11:55
> To:   [EMAIL PROTECTED]
> Subject:      [iText-questions] Can i write an encrypted pdf directly to
> response OutputStream?
> 
> Hi.
>   Can i write an encrypted pdf directly to response.OutputStream?Below is
> the fragment of code which i m implementing.Is it legal without
> performance bottleneck.
>  
>  
> PdfEncryptor.getInstance().writePrintOnlyCopy(pdfReader,httpServletRespons
> e.getOutputStream() ) ;
>  
> protected void writePrintOnlyCopy(PdfReader pdfReader,OutputStream
> outputStream) throws DocumentException, IOException {
>         com.lowagie.text.pdf.PdfEncryptor.encrypt(pdfReader, outputStream,
> IPdfEncryptConstants.Pdf_Owner, null, IPdfEncryptConstants.ALLOW_PRINTING,
> false);
>     }
> 


-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to