public IActionResult Download([FromBody] Dictionary <string, string> jsonObject)
        {
            PdfRenderer pdfviewer    = new PdfRenderer(_cache);
            string      documentBase = pdfviewer.GetDocumentAsBase64(jsonObject);

            return(Content(documentBase));
        }
        public HttpResponseMessage Download(Dictionary <string, string> jsonObject)
        {
            PdfRenderer pdfviewer    = new PdfRenderer();
            string      documentBase = pdfviewer.GetDocumentAsBase64(jsonObject);

            return(GetPlainText(documentBase));
        }
Example #3
0
        public IActionResult Download([FromBody] Dictionary <string, string> jsonObject)
        {
            //Initialize the PDF Viewer object with memory cache object
            PdfRenderer pdfViewer    = new PdfRenderer(Cache);
            string      documentBase = pdfViewer.GetDocumentAsBase64(jsonObject);

            return(Content(documentBase));
        }
Example #4
0
        public ActionResult Download(jsonObjects jsonObject)
        {
            PdfRenderer pdfviewer    = new PdfRenderer();
            var         jsonData     = JsonConverter(jsonObject);
            string      documentBase = pdfviewer.GetDocumentAsBase64(jsonData);

            return(Content(documentBase));
        }