.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

PdfDocument.ViewerPreferences Property

Gets or sets the document display options.

Namespace: DevExpress.Pdf

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

Declaration

public PdfViewerPreferences ViewerPreferences { get; set; }

Property Value

Type Description
PdfViewerPreferences

A DevExpress.Pdf.PdfViewerPreferences object.

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;
}
See Also