I am using PDFReader class to read a PDF file from a source that I dont have
access to.

I am looking for impersonate options. Can anyone tell me how can I use
impersonation for PDFReader class so that when it accesses the file from the
source it impersonates to the ImpersonatedCredentials (say ImpersonatedUser
and ImpersonatedPassword)

Below is the code am using to create a password protected PDF file. But
before that I would like to impersonate so that PDFReader can read the
source file.

*PdfReader pReader = new PdfReader(inSource);*

*//first delete the file*

*if (System.IO.File.Exists(inDestination))*

*{*

*System.IO.File.Delete(inDestination);*

*}*

*PdfEncryptor.Encrypt(pReader, new System.IO.FileStream(inDestination,
FileMode.Create), PdfWriter.STRENGTH128BITS,
Program.MD.Data.ImpersonatedUserPassword,
Program.MD.Data.ImpersonatedUserPassword, PdfWriter.ALLOW_SCREENREADERS);*
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
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