Class Security

Info

Represents Documentize.Security plugin. Used to encrypt and decrypt PDF documents.

public sealed class Security

Inheritance

objectSecurity

Inherited Members

Examples

The example demonstrates how to encrypt PDF document.

// create Security 
var plugin = new Security();
// create EncryptionOptions object to set instructions
var options = new EncryptionOptions("123456", "qwerty");
// add input file path
options.AddInput(new FileDataSource(inputPath));
// set output file path
options.AddOutput(new FileDataSource(outputPath));
// perform the process
plugin.Process(options);

The example demonstrates how to decrypt PDF document.

// create Security 
var plugin = new Security();
// create DecryptionOptions object to set instructions
var options = new DecryptionOptions("123456"));
// add input file path
options.AddInput(new FileDataSource(inputPath));
// set output file path
options.AddOutput(new FileDataSource(outputPath));
// perform the process
plugin.Process(options);

Constructors

Security()

public Security()

Methods

Process(IPluginOptions)

Starts the Documentize.Security processing with the specified parameters.

public ResultContainer Process(IPluginOptions options)

Parameters

  • options IPluginOptions: An options object containg instructions for the Documentize.Security.

Returns

ResultContainer : A ResultContainer object containg the result of the operation.

Exceptions

InvalidOperationException

Namespace: Documentize Assembly: Documentize.dll

 English