How to use the PDF Viewer for rendering pdf in binary format

Hello

Could you tell me how to display the binary codes (in PDF format) as pdf in pdf viewer?

Thankyou🙏


2 Replies 1 reply marked as answer

KG Krithika Ganesan Syncfusion Team November 28, 2022 12:53 PM UTC

Hi Sina,

 

We can load byte array to the PdfLoadedDocument instance. Then you can load the PdfLoadedDocument instance in the PdfViewer. Please refer the below code snippet and sample to load byte array in PdfViewer.

 

//Load the byte array

PdfLoadedDocument loadedDocument = new PdfLoadedDocument(byteArray);

pdfViewer.Load(loadedDocument);

 

Regards,

Krithika


Attachment: WinformsPdfViewer_9a937490.zip

Marked as answer

SA Sina Alavi November 28, 2022 02:16 PM UTC

It worked correctly, thank you


Loader.
Up arrow icon