- Set custom zoom percentage
- Get custom zoom factor
- Set maximum zoom percentage
- Set minimum zoom percentage
Contact Support
Working with magnification
3 Oct 20191 minute to read
Magnification of the PDF document can be done in multiple ways and the different ways are explained below.
Set custom zoom percentage
The users can set custom magnification factor between 100 and 300 to magnify the document displayed. The following code explains this,
pdfViewerControl.ZoomPercentage = 150;
Get custom zoom factor
The following code explains accessing zoom factor in which the document is displayed in the viewer.
int zoom = pdfViewerControl.ZoomPercentage;
Set maximum zoom percentage
The PDF Viewer control allows you to set the maximum zoom percentage value for the PDF document being displayed. The following code example will set the maximum zoom percentage of PDF Viewer instance to 200.
pdfViewerControl.MaximumZoomPercentage = 200;
Set minimum zoom percentage
The PDF Viewer control allows you to set the minimum zoom percentage value for the PDF document being displayed. The following code example will set the minimum zoom percentage of PDF Viewer instance to 10.
pdfViewerControl.MinimumZoomPercentage = 10;