Open a ticket
Chat with us
Click or drag to resize

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.

C#
using PdfViewer = Terminalworks.PdfViewer.AspNetCore;

var options = new PdfViewer.Options {
  Zoom = new PdfViewer.ZoomOptions {
    IsZoomFitToPage = false,
    ZoomValue = 70
  }
};
Copyright © 2024 Terminalworks. All Rights Reserved