Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
149982 | Dec 17,2019 03:18 AM UTC | Dec 18,2019 05:28 AM UTC | ASP.NET Core - EJ 2 | 3 |
![]() |
Tags: PDF Viewer |
public IActionResult Download([FromBody] Dictionary<string, string> jsonObject)
{
PdfRenderer pdfviewer = new PdfRenderer(_cache);
string documentBase = pdfviewer.GetDocumentAsBase64(jsonObject);
string base64String = documentBase.Split(new string[] { "data:application/pdf;base64," }, StringSplitOptions.None)[1];
if (base64String != null || base64String != string.Empty)
{
byte[] byteArray = Convert.FromBase64String(base64String);
}
return Content(string.Empty);
} |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.