Articles in this section
Category / Section

How to open PDF document from URL path using PDF viewer for WinRT?

1 min read

How to open PDF document using URL path in PDF viewer WinRT?

We can open the PDF documents from URL path in PDF Viewer for WinRT by using HttpClient class as in the below code snippet

C#

// Create an instance of HttpClient
 HttpClient httpClient = new HttpClient();
 
// Get the PDF document in byte array
Byte[] contentBytes = await httpClient.GetByteArrayAsync("Your PDF link");
 
// Load the Byte array
PdfLoadedDocument loadedDocument = new PdfLoadedDocument(contentBytes);
 
// Display the PDF document in PdfViewer
pdfViewer.LoadDocument(loadedDocument);

Sample:

https://www.syncfusion.com/downloads/support/directtrac/general/ze/PDFViewerWintRT769034587

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied