Frequently Asked Question

Opening PDF document from storage file on Windows
Last Updated 11 months ago

You can use the SDK to open a PDF using Storage File as follows:

StorageFile file = await StorageFile.GetFileFromApplicationUriAsync(new Uri(uri));

IRandomAccessStream stream = await file.OpenAsync(FileAccessMode.ReadWrite);

if (stream != null)

Frame.Navigate(typeof(PDFReaderPage), stream);

Loading ...