Open PDF from Byte Array Using .NET
Opening a PDF file from a byte array using DynamicPDF Viewer is straight forward, simple and easy.
How to Open PDF File From Byte Array in C#
Below are the steps and sample code to open a PDF file from byte array using the Rasterizer product.
Steps for Opening a PDF from a Byte Array
- Create
PdfDocument
with a byte array. - Open the pdf document.
Sample Code - C#
PdfDocument pdfDocument = new PdfDocument(pdfBytes);
pdfViewer.Open(pdfDocument);
Getting Started
NuGet Package
DynamicPDF Viewer available on NuGet and is part of the ceTe.DynamicPDF.Viewer.NET
package. The easiest way to install is through the Visual Studio Package Manager. You can also download directly from NuGet.
NuGet Package ID: ceTe.DynamicPDF.Viewer.NET
Example Project
An example project showing the functionality on this page can be cloned or viewed from GitHub:
Clone or View Example Project on GitHub
DynamicPDF Viewer Information
More information can be found here: