Adjust the Zoom Level
- 2 minutes to read
This document consists of the following sections.
Zooming In and Out of a Document
Use buttons from the View button group of the PDF Viewer tab.
To zoom in a document, click the Zoom In button on the toolbar, or press the Ctrl+Plus sign.
To zoom out of a document, click the Zoom Out button on the toolbar, or press the Ctrl+Minus sign.
To zoom in or out of a document, you can also do one of the following:
- hold down Ctrl,
rotate the mouse wheel,
or
- invoke the DocumentViewerControl.ZoomInCommand and DocumentViewerControl.ZoomOutCommand commands in code.
Using Marquee Zoom Tool
The Marquee zoom tool allows end users to zoom in a particular part of the page.
To activate the Marquee zoom tool:
- right-click the viewing document;
select the Marquee zoom item in the context menu.
or…
- set PdfViewerControl.CursorMode to CursorModeType.MarqueeZoom
You can perform the following actions:
zoom in on a portion of a page by dragging a rectangle around it;
- increase the zoom level by clicking;
- decrease the zoom level by clicking while pressing the Ctrl key.
Using a Specific Zoom Factor
To zoom to a specific zoom factor, click the Zoom dropdown list button. The following list will be invoked.
Choose the percentage value of the zoom factor or one of the following zoom factor presets.
Actual Size
Sets the document zoom factor value to 100%.
Zoom to Page Level
Sets the document zoom factor value to fit to the widest or highest page in a document.
Fit Width
Sets the document zoom factor value to fit to the width of the widest page in a document.
Fit Visible
The document zoom factor is calculated to fit to the width of the visible content of a page. The region of the visible page content is defined by the bleed box (see 14.11.2 section of the PDF 32000-1:2008 standard). If the bleed box is not defined, the FitVisible mode operates the same as FitWidth mode.
To specify zoom mode in code, set the DocumentViewerControl.ZoomMode property to one of the ZoomMode enumeration values. When the DocumentViewerControl.ZoomMode property is set to ZoomMode.Custom mode, you can specify a document zoom factor value using the DocumentViewerControl.ZoomFactor property.
To perform specific actions after a document’s zoom is changed, handle the DocumentViewerControl.ZoomChanged event.