PdfProtector
Namespace: Lacuna.Pki.Pdf
Assembly: Lacuna.Pki
Class
public static class PdfProtector
Hierarquia: object → PdfProtector
Métodos
Protect(string, byte[])
Protects a PDF with password
public static byte[] Protect(string password, byte[] pdf)
Parâmetros
| Nome | Tipo | Descrição |
|---|---|---|
password | string | Password for opening and editing the PDF |
pdf | byte[] | PDF content bytes |
Retorno
byte[] — Password protected PDF content bytes
Protect(string, Stream, Stream)
Protects a PDF with password
public static void Protect(string password, Stream pdf, Stream output)
Parâmetros
| Nome | Tipo | Descrição |
|---|---|---|
password | string | Password for opening and editing the PDF |
pdf | Stream | PDF stream |
output | Stream | Password protected PDF output stream |
Membros herdados
ToString(), Equals(object), Equals(object, object), ReferenceEquals(object, object), GetHashCode(), GetType(), MemberwiseClone()