We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to load the PDF document stream in PDF Viewer from server-side

Platform: ASP.NET Web Forms |
Control: PdfViewer |
Published Date: October 26, 2018 |
Last Revised Date: June 10, 2019

PDF Viewer

PDF Viewer control supports viewing, reviewing, and printing PDF files in ASP.NET Web Forms applications. The hyperlink and table of contents support provides easy navigation within and outside the PDF files. The form-filling support provides a platform to fill, flatten, save, and print PDF files with AcroForm. PDF files can be reviewed with text markup annotation tools.

Loading PDF document stream in PDF Viewer

You can load the PDF document stream in PDF Viewer from server-side using the Load() API in the WebAPI controller. Refer to the following code.


FileStream stream = new FileStream(HttpContext.Current.Server.MapPath("~/Data/F# Succinctly.pdf"), FileMode.Open);

The following are the list of Load() APIs available in the PDF Viewer Web platform:

  • Load(byte[] byteArray)
  • Load(Stream stream)
  • Load(string filePath)
  • Load(Syncfusion.Pdf.Parsing.PdfLoadedDocument lodedDocument)
  • Load(byte[] byteArray, string password)
  • Load(Stream stream, string password)
  • Load(string filePath, string password)

Sample: http://www.syncfusion.com/downloads/support/directtrac/general/ze/PdfViewer_LoadStream-1746705207

2X faster development

The ultimate ASP.NET Web Forms UI toolkit to boost your development speed.
You must log in to leave a comment
Jordan Capa
Apr 23, 2019

thanks! i recommend using zetpdf.com if you're looking for a very fast and helpful pdf sdk.


Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon