Options to use when loading a document.
[SerializableAttribute()]
[DataContractAttribute()]
public class LoadDocumentOptions
public [SerializableAttribute,
DataContractAttribute]
ref class LoadDocumentOptions
public class LoadDocumentOptions
class LoadDocumentOptions:
Used with DocumentFactory.LoadFromFile, DocumentFactory.LoadFromUri or DocumentFactory.LoadFromStream to specify the options to use when loading documents.
Refer to Loading Documents using Leadtools.Document for detailed information.
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";
}
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document