|
Query |
Details |
|
When clicking the print button from within the control, it makes multiple request to the ServiceUrl/Load for each page in the PDF. Not sure why but it does. |
The PDF viewer control will access the web service for loading the each page of the PDF document using the AJAX request and the data for PDF page will be returned as a JSON object. So when the printing process is initiated in the PDF viewer, the web service will be accessed for each PDF page rendering if the PDF document is not fully loaded. |
|
This prepares the document for printing. It then opens the print dialog and display all pages but each one is blank. I'm unable to locate any supporting document for the printing process and for the extra calls to the Service URL. When reviewing the post back response in Google developer tools it seems as though the PDF is being returned just not displayed in the print dialog. |
From your code snippet, we came to know that you are using an MVC controller as a web service for the PDF viewer control. We tried to reproduce the reported issue with the MVC controller and we are unable to reproduce the issue “The printed output document is blank” in our end.
Please find the sample below in which we have tried to reproduce the issue.
Please modify the above sample to reproduce the issue and share the same to us. The reported issue may also be specific to the PDF document which may have different file structure. So please share us the PDF document in which the issue is reproduced. It will be helpful for us to analyze further and assist you better. |