Class PdfProtector
Inherited Members
Namespace: Lacuna.Pki.Pdf
Assembly: Lacuna.Pki.dll
Syntax
public static class PdfProtector
Methods
Protect(String, Byte[])
Protects a PDF with password
Declaration
public static byte[] Protect(string password, byte[] pdf)
Parameters
Type | Name | Description |
---|---|---|
String | password | Password for opening and editing the PDF |
Byte[] | PDF content bytes |
Returns
Type | Description |
---|---|
Byte[] | Password protected PDF content bytes |
Protect(String, Stream, Stream)
Protects a PDF with password
Declaration
public static void Protect(string password, Stream pdf, Stream output)
Parameters
Type | Name | Description |
---|---|---|
String | password | Password for opening and editing the PDF |
Stream | PDF stream |
|
Stream | output | Password protected PDF output stream |