Class PdfImportSettings
Represents PDF import settings.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Import
Assembly: Telerik.Windows.Documents.Fixed.dll
Syntax
public class PdfImportSettings : IOnExceptionEventRaiser
Constructors
PdfImportSettings()
Properties
CopyStream
Gets or sets whether to copy the document stream on import. When false and ReadingMode is OnDemand, the original stream must be kept open while the document is in use. When true, the original stream can be disposed after import, regardless of the reading mode.
Declaration
public bool CopyStream { get; set; }
Property Value
System.Boolean
|
ReadAllAtOnce
Gets the default format provider settings for all at once reading mode:
{ ReadingMode = AllAtOnce, CopyStream = false }
Declaration
public static PdfImportSettings ReadAllAtOnce { get; }
Property Value
PdfImportSettings
|
ReadingMode
Gets or sets the mode for loading the document pages content on import. If AllAtOnce applied, the document pages content will be loaded on import. If OnDemand applied, the document pages content will be loaded on demand.
Currently, the OnDemand setting should be applied for use with viewers only.
Declaration
public ReadingMode ReadingMode { get; set; }
Property Value
ReadingMode
|
ReadOnDemand
Gets the default format provider settings for on demand reading mode:
{ ReadingMode = OnDemand, CopyStream = true }
Declaration
public static PdfImportSettings ReadOnDemand { get; }
Property Value
PdfImportSettings
|
UseOldRendering
This property is only applicable for RadPdfViewer. When true, it fallbacks internally to use the RadPdfViewer old model on document import.
Declaration
public bool UseOldRendering { get; set; }
Property Value
System.Boolean
|
Events
DocumentUnhandledException
Occurs when unhandled exception is thrown during document import.
Declaration
public event EventHandler<DocumentUnhandledExceptionEventArgs> DocumentUnhandledException
Event Type
System.EventHandler<DocumentUnhandledExceptionEventArgs>
|
OwnerPasswordNeeded
Occurs when the owner password is needed.
Declaration
public event EventHandler<PasswordNeededEventArgs> OwnerPasswordNeeded
Event Type
System.EventHandler<PasswordNeededEventArgs>
|
UserPasswordNeeded
Occurs when the user password is needed.
Declaration
public event EventHandler<PasswordNeededEventArgs> UserPasswordNeeded
Event Type
System.EventHandler<PasswordNeededEventArgs>
|