LoadOptions

LoadOptions class

Provides options that will be used to open a file.

public class LoadOptions

Constructors

Name Description
LoadOptions() Initializes a new instance of LoadOptions class.
LoadOptions(bool) Initializes a new instance of LoadOptions class with specified pre-rasterization flag.
LoadOptions(string) Initializes a new instance of LoadOptions class with specified password.
LoadOptions(string, bool) Initializes a new instance of LoadOptions class with specified password.

Properties

Name Description
Password { get; set; } Gets or sets a password for password-protected documents.
PreRasterize { get; set; } Gets or sets a value, indicating if the file is to be pre-rasterized.

Remarks

Learn more

Examples

The following example demonstrates how to open password-protected document.

LoadOptions loadOptions = new LoadOptions("mysecretpassword");
using (var redactor = new Redactor("PasswordProtected.pdf", loadOptions))
{
    // work with document
}

See Also