Show / Hide Table of Contents

Class PdfProtector

Inheritance
Object
PdfProtector
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
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

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

PDF stream

Stream output

Password protected PDF output stream

Back to top Copyright © 2015-2020 Lacuna Software