Skip to main content
.NET Framework 4.5.2+

PdfViewerPreferences Class

Contains options that specify how to display a document on the screen.

Namespace: DevExpress.Pdf

Assembly: DevExpress.Pdf.v21.2.Core.dll

Declaration

public class PdfViewerPreferences

Remarks

The code sample below specifies the document’s view preferences:

using (PdfDocumentProcessor pdfDocumentProcessor = new PdfDocumentProcessor())
{
    pdfDocumentProcessor.LoadDocument("Documents//Invoice.pdf");
    PdfDocument document = pdfDocumentProcessor.Document;

    PdfViewerPreferences preferences = new PdfViewerPreferences();
    preferences.DisplayDocTitle = true;
    preferences.HideMenubar = true;
    preferences.FitWindow = true;
    preferences.PrintNumCopies = 3;

    document.ViewerPreferences = preferences;
}

Inheritance

Object
PdfViewerPreferences
See Also