Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » iText »

Re: [iText-questions] Servlet and encrypt

Mark Storer

2006-09-07


All PdfWriters have two different public "setEncryption()" you can use, but you have to call them before calling the associated Document's "open()".
 

--Mark Storer
  Senior Software Engineer
  Cardiff Software

#include <disclaimer>
typedef std::Disclaimer<Cardiff> DisCard;

-----Original Message-----
From: itext-questions-bounces@lists.sourceforge.net [mailto:itext-questions-bounces@lists.sourceforge.net]On Behalf Of Laurent YHUEL
Sent: Thursday, September 07, 2006 5:21 AM
To: itext-questions@lists.sourceforge.net
Subject: [iText-questions] Servlet and encrypt

Hello

 

I use itext in servlet with stream like this:

 

Document document = new Document(PageSize.A4, 50, 50, 70, 70);

ByteArrayOutputStream baos = new ByteArrayOutputStream();

PdfWriter writer = PdfWriter.getInstance(document, baos);

 

And to disallow modification on this document I only know “PdfEncryptor”.

But “PdfEncryptor” work with files.

 

So can I protect my document against modification without write it temporally on web-server.

 

Thanks,

 

Laurent

 

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
iText-questions@(protected)
https://lists.sourceforge.net/lists/listinfo/itext-questions
©2008 junlu.com - Jax Systems, LLC, U.S.A.