Viscomsoft UWP PDF Viewer SDK

PDFDisplayManager.GetActivePages Method

 

Get the active pages.
 
 C#

public List<IPage> GetActivePages()

 


No Parameter

Namespace: Viscomsoft.UWP.PDFViewerSDK;

Return Value
Return the list of IPage.

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();
   
     foreach (IPage page in _pdfDisplayManager.GetActivePages())
     {
       string str =page.GetSelectedText(page.GetSelectionMin(), page.GetSelectionMax());
     }