[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.GotoPage(1);
uiViewPanel.Child = createScrollViewControl();
bool IsTIFF = _pdfDisplayManager.Document.IsTIFF;
string strFileName = _pdfDisplayManager.Document.FilePath;
string strFileSize = _pdfDisplayManager.Document.FileSize;
string strFormat = _pdfDisplayManager.Document.Version;
string strPages = _pdfDisplayManager.Document.PageCount.ToString();
string strPageSize = _pdfDisplayManager.Document.PageSize;
string strProducer = _pdfDisplayManager.Document.Producer;
string strCreated = _pdfDisplayManager.Document.Created;
string strModified = _pdfDisplayManager.Document.Modified;
Size sizePageSize = _pdfDisplayManager.Document.DefaultPageSize;
}
|