pdf print and populate data issue

Angular pdf viewer  print is not working fine and how i populate data in pdf form when i load that form.
and my second point is how i populate data in that form.
let me know I am waiting for your quick response.
thanks

3 Replies 1 reply marked as answer

DM Dhivyabharathi Mohan Syncfusion Team January 5, 2021 05:19 PM UTC

  
Hi WAQAR, 
 
Thank you for Contacting Syncfusion Support. 
 
 
Query 
Details 
Angular pdf viewer  print is not working fine 
We were able to reproduce the reported issue and suspect to be defect. We will analyze further on this and update with more details on January 7th, 2021  
how i populate data in pdf form when i load that form.  
 
In our PDF Viewer, we are having an API named importFormFields() method to import the data in pdf form document. But, currently we are facing some issue while using this method using online service url. However, we have shared the documentation KB link to create the controller code.  
 
UG Documentation Link to create web service: 
 
 
Use the below code snippet in pdfViewerController.cs for importing the data in the form field document 
 
Code Snippet : 
 
 
public IActionResult ImportFormFields([FromBody] Dictionary<string, string> jsonObject) 
        { 
            PdfRenderer pdfviewer = new PdfRenderer(_cache); 
 
            object jsonResult = pdfviewer.ImportFormFields(jsonObject); 
 
            return Content(JsonConvert.SerializeObject(jsonResult)); 
        } 
 
 
 
 
 
Kindly try it and revert us, if you want further assistance. 
 
Regards, 
Dhivya. 



PN Preethi Nesakkan Gnanadurai Syncfusion Team January 6, 2021 05:07 AM UTC

From: WAQAR AHMAD <
To: Syncfusion Support <support@syncfusion.com>
Subject: Re: Syncfusion support community forum 161133, pdf print and populate data issue, has been updated. 

  

hi Syncfusion support,  
thanks for your email. but we are using angular 8 and you share documentation for .net
please resolve these issues for angular. 
I am waiting for your quick response. 
thanks 



DM Dhivyabharathi Mohan Syncfusion Team January 6, 2021 02:08 PM UTC

Hi WAQAR, 
 
Our PDF Viewer control is both server and client-side oriented. PDF viewer control processes the PDF document on the server-side(developed with the .NET environment) and sends the processed PDF data to the client (Angular) using the web service to render the PDF document and for further operations in PDF viewer. Also, we are rendering the pages on-demand, so on scrolling, we will send the request to the server to get the page details for displaying in PDF Viewer. So, we need a web service project to render the pages and for further operations in PDF Viewer. 
  
However, you can create the PDF Viewer Web Service project locally in ASP.NET Core/ ASP.NET MVC platforms.  
 
Please refer to the following link to create the PDF Viewer service  
 
Regards, 
Dhivya. 


Marked as answer
Loader.
Up arrow icon