Open a ticket
Chat with us
Click or drag to resize

Switching between single and multi page view

Please note that application of the options described in this section depend on the initial set up explained here.

This example will open viewer in multi-page view mode.
ViewerType has a default value of PdfViewer.ViewerTypes.MultiPageViewerMulti.

C#
using PdfViewer = Terminalworks.PdfViewer.AspNetCore;

var options = new PdfViewer.Options {
  ViewerType = PdfViewer.ViewerTypes.MultiPageViewer
};

This example will open viewer in single-page view mode, which means it will show one page at a time.

C#
using PdfViewer = Terminalworks.PdfViewer.AspNetCore;

var options = new PdfViewer.Options {
  ViewerType = PdfViewer.ViewerTypes.SinglePageViewer
};
Copyright © 2024 Terminalworks. All Rights Reserved