I've downloaded the latest iTextSharp DLL (5.0.4) to test out in a .net
app.  We have pretty simple code that simply flattens the form fields on
an existing PDF and sets the security

 

The gist of the code simply does this:

 

.

.

.

            int x = ~iTextSharp.text.pdf.PdfWriter.AllowModifyContents;

 
stamper.SetEncryption(iTextSharp.text.pdf.PdfWriter.STRENGTH128BITS, "",
GetDocOwnerPassword(), x);

 

            stamper.FormFlattening = true;

            stamper.SetFullCompression();            

            

            stamper.Close();

            reader.Close();           

.

.

.

 

After opening the resulting PDF and comparing to the original, I notice
that the Author and Keywords have been removed.    Any advice on how to
resolve this?  Thanks in advance.

------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to