skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop
    Web
    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for ASP.NET AJAX UI for ASP.NET MVC UI for ASP.NET Core UI for Blazor UI for Silverlight UI for PHP UI for JSP
    Mobile
    UI for .NET MAUI UI for Xamarin
    Document Management
    Telerik Document Processing
    Desktop
    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF UI for UWP
    Reporting & Mocking
    Telerik Reporting Telerik Report Server Telerik JustMock
    Automated Testing
    Test Studio Test Studio Dev Edition
    CMS
    Sitefinity
    UI/UX Tools
    ThemeBuilder
    Debugging
    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Jam FiddlerCap FiddlerCore
    Extended Reality
    UI for Unity XR
    Free Tools
    JustAssembly JustDecompile VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Docs & Support
  • Pricing
  • Search
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class PdfImportSettings

Represents PDF import settings.

Inheritance
System.Object
PdfImportSettings
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Import
Assembly: Telerik.Windows.Documents.Fixed.dll

Syntax

public class PdfImportSettings : IOnExceptionEventRaiser

Constructors

PdfImportSettings()

Initializes a new instance of the PdfImportSettings class.

Declaration
public 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>

Was this article helpful?

Tell us how we can improve this article

Skip
Getting Started
  • Getting Started
Support Resources
  • Documentation
Community
  • Forums
  • Blogs
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.