Pular para o conteúdo principal

PdfProtector

Namespace: Lacuna.Pki.Pdf
Assembly: Lacuna.Pki
Class

public static class PdfProtector

Hierarquia: objectPdfProtector

Métodos

Protect(string, byte[])

Protects a PDF with password

public static byte[] Protect(string password, byte[] pdf)

Parâmetros

NomeTipoDescrição
passwordstringPassword for opening and editing the PDF
pdfbyte[]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

NomeTipoDescrição
passwordstringPassword for opening and editing the PDF
pdfStreamPDF stream
outputStreamPassword protected PDF output stream

Membros herdados

ToString(), Equals(object), Equals(object, object), ReferenceEquals(object, object), GetHashCode(), GetType(), MemberwiseClone()