# PdfViewerPreferences

Simple viewer preference entries discovered from the document catalog.

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[PdfViewerPreferences.cs:19](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfViewerPreferences.cs#L19)

**Modifiers**

sealed

Simple viewer preference entries discovered from the document catalog.

## Inheritance

- object
- PdfViewerPreferences

## Usage

Explore 2 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.

### Returned or exposed by 2

- Property [PdfDocumentInfo.ViewerPreferences](/api/pdf/officeimo-pdf-pdfdocumentinfo/#property-viewerpreferences)
- Property [PdfDocumentReadResult.ViewerPreferences](/api/pdf/officeimo-pdf-pdfdocumentreadresult/#property-viewerpreferences)

Filter members 

Show inherited

## Methods

`public bool? GetBoolean(string name)` [#](#method-getboolean-string)

[PdfViewerPreferences.cs:28](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfViewerPreferences.cs#L28)

Gets a boolean viewer preference value by PDF preference name.

Parameters

**name string required**

Returns

`bool?`

`public string? GetValue(string name)` [#](#method-getvalue-string)

[PdfViewerPreferences.cs:19](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfViewerPreferences.cs#L19)

Gets a simple viewer preference value by PDF preference name.

Parameters

**name string required**

Returns

`string?`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public IReadOnlyDictionary<string, string> Values { get; }` [#](#property-values)

[PdfViewerPreferences.cs:12](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfViewerPreferences.cs#L12)

Simple viewer preference values keyed by PDF preference name.

`public int Count { get; }` [#](#property-count)

[PdfViewerPreferences.cs:15](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Model/PdfViewerPreferences.cs#L15)

Number of simple viewer preference entries read from the catalog.

<!-- PowerForge markdown artifact sha256:5514B6C318DF8495133F0591DE57735F7BFE1F755018B8D515369C2139CAF33E -->
