Class Security

Info

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

public static class Security

Inheritance

objectSecurity

Inherited Members

Examples

The example demonstrates how to encrypt PDF document.

// Create EncryptionOptions object to set instructions
var options = new EncryptionOptions("123456", "qwerty");
// Add input file path
options.AddInput(new FileDataSource("path_to_your_pdf_file.pdf"));
// Set output file path
options.AddOutput(new FileDataSource("path_to_result_pdf_file.pdf"));
// Perform the process
Security.Process(options);

The example demonstrates how to decrypt PDF document.

// Create DecryptionOptions object to set instructions
var options = new DecryptionOptions("123456");
// Add input file path
options.AddInput(new FileDataSource("path_to_your_pdf_file.pdf"));
// Set output file path
options.AddOutput(new FileDataSource("path_to_result_pdf_file.pdf"));
// Perform the process
Security.Process(options);

Methods

Process(EncryptionOptions)

Starts the Documentize.Security processing with the specified parameters.

public static ResultContainer Process(EncryptionOptions options)

Parameters

  • options EncryptionOptions: An options object containg instructions for the Documentize.EncryptionOptions.

Returns

ResultContainer : An Documentize.ResultContainer object containing the result of the operation.

Exceptions

ArgumentException

If options not set.

Process(DecryptionOptions)

Starts the Documentize.Security processing with the specified parameters.

public static ResultContainer Process(DecryptionOptions options)

Parameters

  • options DecryptionOptions: An options object containg instructions for the Documentize.DecryptionOptions.

Returns

ResultContainer : An Documentize.ResultContainer object containing the result of the operation.

Exceptions

ArgumentException

If options not set.

Namespace: Documentize Assembly: Documentize.dll

 English