Opening PDFs from Byte Arrays
Opening a PDF file from a byte array using DynamicPDF Viewer is straight forward, simple and easy. The following C# example shows you how.
How to Open PDF File From Byte Array
Below are the steps and C# sample code to open a PDF file from byte array using DynamicPDF Viewer for .NET.
Steps for Opening a PDF from a Byte Array
- Create
PdfDocumentwith a byte array. - Open the pdf document.
Sample Code - C#
PdfDocument pdfDocument = new PdfDocument(pdfBytes);
pdfViewer.Open(pdfDocument);
GitHub Project
Examples are provided in C# and VB.NET. Clone or view the example project at GitHub.
Getting Started
Get started easily by installing DynamicPDF Viewer for .NET through NuGet or manually. Then, refer to the documentation for more information on using and purchasing.
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.
DynamicPDF Viewer Information
Use our customizable .NET control, DynamicPDF Viewer for .NET, to fully embed it into any .NET WinForm application. This control eliminates the need for an external viewer to display or interact with your PDF documents. DynamicPDF Viewer for .NET is efficient, reliable, and compatible with all our DynamicPDF products. With a free evaluation edition available for you to try, why not start using DynamicPDF Viewer today?