Viscomsoft UWP PDF Viewer SDK

PDFDisplayManager.GotoPage Method

 

Jump to a specified page number.
 
 C#

public void GotoPage(int pageNumber)

 


Parameter
pageNumber - the page number. first page is 1.

Namespace: Viscomsoft.UWP.PDFViewerSDK;

Return Value
No Return value.

Example

   

[C# Syntax] 
using Viscomsoft.UWP.PDFViewerSDK;

    DocumentFactory factory = new DocumentFactory();

    IDocument doc = factory.CreateDocument(file.Name);

    bool opened = await doc.OpenAsync(file);

    _pdfDisplayManager = new PDFDisplayManager();

    _pdfDisplayManager.Width = (int)Window.Current.Bounds.Width;

    _pdfDisplayManager.Height = (int)Window.Current.Bounds.Height;

    _pdfDisplayManager.Document = doc;

    _pdfDisplayManager.GotoPage(1);

    uiViewPanel.Child = createScrollViewControl();