Click or drag to resize
Pdf Library for .NET

PdfDocumentViewerPreferences Property

Gets the viewer-preferences block that controls how the document appears in a pdf reader — which panel opens (bookmarks, thumbnails, full-screen), whether the reader's tool bar / menu bar / window UI is hidden, whether the window resizes to the first page, and so on. Mutations write through to the underlying PDF immediately. Works on every document origin — newly-created documents, loaded documents, and HtmlToPdf output.

For the HtmlToPdf pipeline, ViewerPreferences is the pre-conversion knob; the two are complementary — set options before conversion, then fine-tune the returned document via this property.


Namespace: SelectPdf.Universal
Assembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.4
Syntax
public PdfViewerPreferences ViewerPreferences { get; }

Property Value

PdfViewerPreferences
See Also