Thank u very much for this .. Now the file is not able
to give print if any modifications is made editing it!
Now again having problem is still the user is able to
copy the text to other new pdf and edit and able to
print can u pls give me solution to restrict copy also

sample code:
reader = PdfReader(readFile);
com.lowagie2.text.pdf.PdfEncryptor.encrypt(reader,      new
FileOutputStream(writeFile),
"".getBytes(),"".getBytes(),PdfWriter.AllowFillIn,false);

        


--- rk <[EMAIL PROTECTED]> wrote:

> use AllowFillIn property
> 
> ----- Original Message ----- 
> From: "satish babu" <[EMAIL PROTECTED]>
> To: <[email protected]>
> Sent: Friday, August 26, 2005 4:33 AM
> Subject: [iText-questions] PDF encryption... small
> clarification .. pls!
> 
> 
> > Hi,
> >  i am doing pdf encryption. It is working fine.
> but
> > We want to give only print permissin and shuld not
> be
> > editable. when the pdf file is opened it is giving
> > worning msg as "the pdf is procted not able to
> edit".
> >  But when we try to edit the text it is editable
> and
> > not able to save changes, but we can take print by
> > editing. We have to restrict complete editing.
> >  i am giving "PdfWriter.AllowPrinting" is it
> > sufficiant?
> >  For trail  i am using "Foxit pdfeditor".
> >
> > sample code:
> > reader = PdfReader(readFile);
> > PdfEncryptor.encrypt(reader,new
> > FileOutputStream(writeFile),
> >
>
"".getBytes(),"".getBytes(),PdfWriter.AllowPrinting,false);
> >
> >
> > Thank U
> > Regards
> > KC
> >
> >
> >
> >
> ____________________________________________________
> > Start your day with Yahoo! - make it your home
> page
> > http://www.yahoo.com/r/hs
> >
> >
> >
> >
>
-------------------------------------------------------
> > SF.Net email is Sponsored by the Better Software
> Conference & EXPO
> > September 19-22, 2005 * San Francisco, CA *
> Development Lifecycle 
> > Practices
> > Agile & Plan-Driven Development * Managing
> Projects & Teams * Testing & QA
> > Security * Process Improvement & Measurement *
> http://www.sqe.com/bsce5sf
> > _______________________________________________
> > iText-questions mailing list
> > [email protected]
> >
>
https://lists.sourceforge.net/lists/listinfo/itext-questions
> 
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to