Table of Contents

Class PdfEncryptedPayloadFileSpecFactory

Namespace
iText.Kernel.Pdf.Filespec
Assembly
itext.kernel.dll
public class PdfEncryptedPayloadFileSpecFactory
Inheritance
PdfEncryptedPayloadFileSpecFactory
Inherited Members

Constructors

PdfEncryptedPayloadFileSpecFactory()

public PdfEncryptedPayloadFileSpecFactory()

Methods

Create(PdfDocument, byte[], PdfEncryptedPayload)

Embed a encrypted payload to a PdfDocument.

public static PdfFileSpec Create(PdfDocument doc, byte[] fileStore, PdfEncryptedPayload encryptedPayload)

Parameters

doc PdfDocument

PdfDocument to add the file to

fileStore byte[]

byte[] containing the file

encryptedPayload PdfEncryptedPayload

the encrypted payload dictionary

Returns

PdfFileSpec

PdfFileSpec containing the file specification of the encrypted payload

Create(PdfDocument, byte[], PdfEncryptedPayload, PdfDictionary)

Embed a encrypted payload to a PdfDocument.

public static PdfFileSpec Create(PdfDocument doc, byte[] fileStore, PdfEncryptedPayload encryptedPayload, PdfDictionary fileParameter)

Parameters

doc PdfDocument

PdfDocument to add the file to

fileStore byte[]

byte[] containing the file

encryptedPayload PdfEncryptedPayload

the encrypted payload dictionary

fileParameter PdfDictionary

Pdfdictionary containing file parameters

Returns

PdfFileSpec

PdfFileSpec containing the file specification of the encrypted payload

Create(PdfDocument, byte[], PdfEncryptedPayload, PdfName, PdfDictionary)

Embed a encrypted payload to a PdfDocument.

public static PdfFileSpec Create(PdfDocument doc, byte[] fileStore, PdfEncryptedPayload encryptedPayload, PdfName mimeType, PdfDictionary fileParameter)

Parameters

doc PdfDocument

PdfDocument to add the file to

fileStore byte[]

byte[] containing encrypted file

encryptedPayload PdfEncryptedPayload

the encrypted payload dictionary

mimeType PdfName

mime-type of the file

fileParameter PdfDictionary

Pdfdictionary containing file parameters

Returns

PdfFileSpec

PdfFileSpec containing the file specification of the encrypted payload

Create(PdfDocument, Stream, PdfEncryptedPayload)

Embed a encrypted payload to a PdfDocument.

public static PdfFileSpec Create(PdfDocument doc, Stream @is, PdfEncryptedPayload encryptedPayload)

Parameters

doc PdfDocument

PdfDocument to add the file to

is Stream

stream containing encrypted file

encryptedPayload PdfEncryptedPayload

the encrypted payload dictionary

Returns

PdfFileSpec

PdfFileSpec containing the file specification of the encrypted payload

Create(PdfDocument, Stream, PdfEncryptedPayload, PdfName)

Embed a encrypted payload to a PdfDocument.

public static PdfFileSpec Create(PdfDocument doc, Stream @is, PdfEncryptedPayload encryptedPayload, PdfName mimeType)

Parameters

doc PdfDocument

PdfDocument to add the file to

is Stream

stream containing encrypted file

encryptedPayload PdfEncryptedPayload

the encrypted payload dictionary

mimeType PdfName

mime-type of the file

Returns

PdfFileSpec

PdfFileSpec containing the file specification of the encrypted payload

Create(PdfDocument, Stream, PdfEncryptedPayload, PdfName, PdfDictionary)

Embed a encrypted payload to a PdfDocument.

public static PdfFileSpec Create(PdfDocument doc, Stream @is, PdfEncryptedPayload encryptedPayload, PdfName mimeType, PdfDictionary fileParameter)

Parameters

doc PdfDocument

PdfDocument to add the file to

is Stream

stream containing encrypted file

encryptedPayload PdfEncryptedPayload

the encrypted payload dictionary

mimeType PdfName

mime-type of the file

fileParameter PdfDictionary

Pdfdictionary containing file parameters

Returns

PdfFileSpec

PdfFileSpec containing the file specification of the encrypted payload

Create(PdfDocument, string, PdfEncryptedPayload)

Embed a encrypted payload to a PdfDocument.

public static PdfFileSpec Create(PdfDocument doc, string filePath, PdfEncryptedPayload encryptedPayload)

Parameters

doc PdfDocument

PdfDocument to add the file to

filePath string

path to the encrypted file

encryptedPayload PdfEncryptedPayload

the encrypted payload dictionary

Returns

PdfFileSpec

PdfFileSpec containing the file specification of the encrypted payload

Create(PdfDocument, string, PdfEncryptedPayload, PdfName)

Embed a encrypted payload to a PdfDocument.

public static PdfFileSpec Create(PdfDocument doc, string filePath, PdfEncryptedPayload encryptedPayload, PdfName mimeType)

Parameters

doc PdfDocument

PdfDocument to add the file to

filePath string

path to the encrypted file

encryptedPayload PdfEncryptedPayload

the encrypted payload dictionary

mimeType PdfName

mime-type of the file

Returns

PdfFileSpec

PdfFileSpec containing the file specification of the encrypted payload

Create(PdfDocument, string, PdfEncryptedPayload, PdfName, PdfDictionary)

Embed a encrypted payload to a PdfDocument.

public static PdfFileSpec Create(PdfDocument doc, string filePath, PdfEncryptedPayload encryptedPayload, PdfName mimeType, PdfDictionary fileParameter)

Parameters

doc PdfDocument

PdfDocument to add the file to

filePath string

path to the encrypted file

encryptedPayload PdfEncryptedPayload

the encrypted payload dictionary

mimeType PdfName

mime-type of the file

fileParameter PdfDictionary

Pdfdictionary containing file parameters

Returns

PdfFileSpec

PdfFileSpec containing the file specification of the encrypted payload

GenerateDescription(PdfEncryptedPayload)

public static string GenerateDescription(PdfEncryptedPayload ep)

Parameters

ep PdfEncryptedPayload

Returns

string

GenerateFileDisplay(PdfEncryptedPayload)

public static string GenerateFileDisplay(PdfEncryptedPayload ep)

Parameters

ep PdfEncryptedPayload

Returns

string

Wrap(PdfDictionary)

public static PdfFileSpec Wrap(PdfDictionary dictionary)

Parameters

dictionary PdfDictionary

Returns

PdfFileSpec