Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

PdfViewerPreferencesOptions

Namespace OfficeIMO.Pdf
Assembly OfficeIMO.Pdf
Source revision 804a7612eee4 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(Int32 startPageNumber, Int32 endPageNumber) #
Returns: PdfViewerPreferencesOptions

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

Parameters

startPageNumber System.Int32 requiredposition: 0
endPageNumber System.Int32 requiredposition: 1
public PdfViewerPreferencesOptions AddPrintPageRange(PdfPrintPageRange range) #
Returns: PdfViewerPreferencesOptions

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

Parameters

range OfficeIMO.Pdf.PdfPrintPageRange requiredposition: 0
public PdfViewerPreferencesOptions ClearPrintPageRanges() #
Returns: PdfViewerPreferencesOptions

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

Properties

public Boolean? DisplayDocTitle { get; set; } #

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

public Boolean? HideToolbar { get; set; } #

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

public Boolean? HideMenubar { get; set; } #

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

public Boolean? HideWindowUI { get; set; } #

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

public Boolean? FitWindow { get; set; } #

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

public Boolean? CenterWindow { get; set; } #

Requests that viewers center the document window on screen.

public Boolean? 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 Int32? 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.