Password Property (original) (raw)
Summary
The password to use if the document is encrypted.
Syntax
public string Password { get; set; }
public:
property String^ Password
{
String^ get()
void set(String^ value)
}
public String getPassword()
public void setPassword(String value)
Property Value
The password to use if the document is encrypted. Default value is null.
Example
using Leadtools;
using Leadtools.Caching;
using Leadtools.Document;
public void DocumentFactoryLoadFromFileExample()
{
var options = new LoadDocumentOptions();
options.AnnotationsUri = null;
options.FirstPageNumber = 1;
options.LastPageNumber = -1;
options.Password = null;
options.WebClient = null;
options.CachePolicy = new CacheItemPolicy();
using (var document = DocumentFactory.LoadFromFile(Path.Combine(LEAD_VARS.ImagesDir, "Leadtools.pdf"), options))
{
PrintOutDocumentInfo(document);
}
}
static class LEAD_VARS
{
public const string ImagesDir = @"C:\LEADTOOLS22\Resources\Images";
}