LoadOptions
Leave feedback
On this page
Provides options that will be used to open a file.
public class LoadOptions
| 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. |
| 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. |
Learn more
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
}
- namespace GroupDocs.Redaction.Options
- assembly GroupDocs.Redaction
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.