iTextSharp.text.pdf.PdfEncryptor.Encrypt C# (CSharp) Метод

Encrypt() публичный статический Метод

public static Encrypt ( PdfReader reader, Stream os, bool strength, String userPassword, String ownerPassword, int permissions ) : void
reader PdfReader
os Stream
strength bool
userPassword String
ownerPassword String
permissions int
Результат void
        public static void Encrypt(PdfReader reader, Stream os, bool strength, String userPassword, String ownerPassword, int permissions)
        {
            PdfStamper stamper = new PdfStamper(reader, os);
            stamper.SetEncryption(strength, userPassword, ownerPassword, permissions);
            stamper.Close();
        }

Same methods

PdfEncryptor::Encrypt ( PdfReader reader, Stream os, bool strength, String userPassword, String ownerPassword, int permissions, string>.Dictionary newInfo ) : void
PdfEncryptor::Encrypt ( PdfReader reader, Stream os, byte userPassword, byte ownerPassword, int permissions, bool strength128Bits ) : void
PdfEncryptor::Encrypt ( PdfReader reader, Stream os, byte userPassword, byte ownerPassword, int permissions, bool strength128Bits, string>.Dictionary newInfo ) : void
PdfEncryptor::Encrypt ( PdfReader reader, Stream os, int type, String userPassword, String ownerPassword, int permissions ) : void
PdfEncryptor::Encrypt ( PdfReader reader, Stream os, int type, String userPassword, String ownerPassword, int permissions, string>.Dictionary newInfo ) : void