PdfViewerControl.PdfDocumentLoadingPolicy Property

Specifies how PDF documents are loaded and processed for additional features such as text search, bookmarks, attachments, etc. This is a dependency property.

Namespace: DevExpress.UI.Xaml.Controls

Assembly: DevExpress.UI.Xaml.Controls.v19.2.dll


public PdfDocumentLoadingPolicy PdfDocumentLoadingPolicy { get; set; }
Public Property PdfDocumentLoadingPolicy As PdfDocumentLoadingPolicy

Property Value

Type Description

A PdfDocumentLoadingPolicy enumeration value. By default, PdfDocumentLoadingPolicy.InMemoryOnDemand.


The PdfDocumentLoadingPolicy property allows you to optimize the PDF Viewer's performance by selecting the mode that is the most appropriate for your scenario.

Modes that support additional features:

  • InMemory - Slower initial loading, more memory consumption, better performance.
  • InMemoryOnDemand - Faster initial loading, less memory consumption, slower performance on initial feature requests. Once the end-user requests all additional features available for a document, performance matches the InMemory mode.
  • OnDemand - Faster initial loading, minimal memory consumption and slower performance.

Modes that do not support additional features:

  • NativeOnly - Less memory consumption and slower performance.
  • NativeOnlyInMemory - More memory consumption and better performance.
See Also