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,httpServletResponse.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);
    }

Reply via email to