Working with magnification
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;
How to enable or disable the double-tap zoom
You can enable or disable the zooming of a PDF document on double-tap by setting the
EnableDoubleTapZooming property of the PDF viewer to
The default value of the
EnableDoubleTapZoomingAPI is set to
//Disable the double-tap zoom pdfViewer.EnableDoubleTapZooming = false;