Viscomsoft UWP PDF Viewer SDK

PDFDisplayManager.LicenseKey property  

 

Sets the license key which unlocks the SDK from demo mode. This License key is supplied by the vendor. The Nag screen will disappear.
 
 C#

public string LicenseKey { get; set;}  

 


Namespace: Viscomsoft.UWP.PDFViewerSDK;

Example

   

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

private async void open(StorageFile file)
  {

    DocumentFactory factory = new DocumentFactory();

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

    bool opened = await doc.OpenAsync(file);

    _pdfDisplayManager = new PDFDisplayManager();

    _pdfDisplayManager.LicenseKey="XXXXXX";

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

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

    _pdfDisplayManager.Document = doc;

    _pdfDisplayManager.TextSearch.TextFound += new EventHandler(TextSearch_TextFound);

    _pdfDisplayManager.GotoPage(1);

    uiViewPanel.Child = createScrollViewControl();

  }

 async void TextSearch_TextFound(object sender, EventArgs e)
  {

    MessageDialog dlg = new MessageDialog(_pdfDisplayManager.HighlightRect.ToString());
    dlg.ShowAsync();
  }