public IActionResult RenderAnnotationComments([FromBody] Dictionary <string, string> jsonObject)
        {
            PdfRenderer pdfviewer  = new PdfRenderer(_cache);
            object      jsonResult = pdfviewer.GetAnnotationComments(jsonObject);

            return(Content(JsonConvert.SerializeObject(jsonResult)));
        }
        public object RenderAnnotationComments(Dictionary <string, string> jsonObject)
        {
            PdfRenderer pdfviewer  = new PdfRenderer();
            object      jsonResult = pdfviewer.GetAnnotationComments(jsonObject);

            return(jsonResult);
        }
Example #3
0
        public IActionResult ExportAnnotations([FromBody] Dictionary <string, string> jsonObject)
        {
            PdfRenderer pdfViewer  = new PdfRenderer(Cache);
            string?     jsonResult = pdfViewer.GetAnnotationComments(jsonObject).SerializeToJson();

            return(Content(jsonResult));
        }
Example #4
0
        public IActionResult RenderAnnotationComments([FromBody] Dictionary <string, string> jsonObject)
        {
            //Initialize the PDF Viewer object with memory cache object
            PdfRenderer pdfViewer  = new PdfRenderer(Cache);
            object      jsonResult = pdfViewer.GetAnnotationComments(jsonObject);

            return(Content(JsonConvert.SerializeObject(jsonResult)));
        }
Example #5
0
        public ActionResult RenderAnnotationComments(jsonObjects jsonObject)
        {
            PdfRenderer pdfviewer  = new PdfRenderer();
            var         jsonData   = JsonConverter(jsonObject);
            object      jsonResult = pdfviewer.GetAnnotationComments(jsonData);

            return(Content(JsonConvert.SerializeObject(jsonResult)));
        }