Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PdfViewerPreferencesOptions

OfficeIMO.Pdf

Namespace
OfficeIMO.Pdf
Assembly
OfficeIMO.Pdf
Source revision
9931e96ab849 with working tree changes
Modifiers
sealed

Simple viewer preferences emitted in the generated PDF catalog.

Inheritance

  • object
  • PdfViewerPreferencesOptions

Usage

Explore 5 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters 2

Constructors

public PdfViewerPreferencesOptions() #

Methods

AddPrintPageRange 2 overloads
public PdfViewerPreferencesOptions AddPrintPageRange(int startPageNumber, int endPageNumber) #

Adds a one-based inclusive page range used to initialize the viewer print dialog.

Parameters

startPageNumber int required
endPageNumber int required
public PdfViewerPreferencesOptions AddPrintPageRange(PdfPrintPageRange range) #

Adds a one-based inclusive page range used to initialize the viewer print dialog.

Parameters

range OfficeIMO.Pdf.PdfPrintPageRange required
public PdfViewerPreferencesOptions ClearPrintPageRanges() #

Clears generated print page ranges while leaving other viewer preferences unchanged.

Properties

public bool? DisplayDocTitle { get; set; } #

Requests that viewers display the document title from metadata instead of the file name.

public bool? HideToolbar { get; set; } #

Requests that viewers hide the toolbar when the document is opened.

public bool? HideMenubar { get; set; } #

Requests that viewers hide the menu bar when the document is opened.

public bool? HideWindowUI { get; set; } #

Requests that viewers hide user-interface elements when the document is opened.

public bool? FitWindow { get; set; } #

Requests that viewers resize the window to fit the first displayed page.

public bool? CenterWindow { get; set; } #

Requests that viewers center the document window on screen.

public bool? PickTrayByPdfSize { get; set; } #

Requests that viewers pick the printer tray based on each page's PDF size.

public PdfNonFullScreenPageMode? NonFullScreenPageMode { get; set; } #

Requests the page mode used when leaving full-screen display.

public PdfViewerDirection? Direction { get; set; } #

Requests the viewer page progression direction.

public PdfPrintScaling? PrintScaling { get; set; } #

Requests viewer print scaling behavior.

public PdfDuplexMode? Duplex { get; set; } #

Requests viewer duplex-printing behavior.

public PdfPageBoundaryBox? ViewArea { get; set; } #

Requests the page boundary box used when fitting pages in the viewer.

public PdfPageBoundaryBox? ViewClip { get; set; } #

Requests the page boundary box used when clipping pages in the viewer.

public PdfPageBoundaryBox? PrintArea { get; set; } #

Requests the page boundary box used when printing pages.

public PdfPageBoundaryBox? PrintClip { get; set; } #

Requests the page boundary box used when clipping printed pages.

public int? NumCopies { get; set; } #

Requested number of copies used to initialize the viewer print dialog.

public IReadOnlyList<PdfPrintPageRange> PrintPageRanges { get; } #

One-based inclusive page ranges used to initialize the viewer print dialog.