Setting available zoom options |
Please note that application of the options described in this section depend on the initial set up explained here.
In this example:
it will show page in 70% of an original size (ZoomValue default value is 100)
If IsZoomFitToPage == true, it would ignore ZoomValue property and it would calculate page size according to the viewer component size. IsZoomFitToPage default value is true.
using PdfViewer = Terminalworks.PdfViewer.AspNetCore; var options = new PdfViewer.Options { Zoom = new PdfViewer.ZoomOptions { IsZoomFitToPage = false, ZoomValue = 70 } };