hi All
When I was using ejs pdfviewer to request the Https method through serviceURL, the frontend was unable to receive my error number properly, causing me to not display the error message properly. However, when requesting HTTP, there was no such issue.
API Return
The handling of front-end events, in the case of Https, the e.errMessage value remains empty and there are no other values for me to refer to. But in the HTTP case, the e.ErrrMessage value is the content of the ReasonPhrase I returned.
How should I handle this situation. I can get the content I want on HTTPS.
Thanks.
Hi Qing Yuan,
Thank
you for reaching out to us. We are currently investigating the issue you
reported and will provide further updates by tomorrow.
Regards,
Sathiyaseelan K
Hi Qing Yuan,
Please share the code snippet where you're making the request using the serviceUrl in the Syncfusion PDF Viewer. This will help us review how the PDF Viewer is configured and understand how the request is being made.
Also, let us know why you're currently using server rendering mode. For optimal performance, we recommend considering the standalone PDF Viewer. Standalone mode provides improved efficiency and is well-suited for scenarios where offline functionality, low latency, or limited backend infrastructure is a priority.
Documentation Link: Getting started Standalone Angular PDF Viewer component | Syncfusion
Regards,
Priyadharshini
hi All
The code is as follows。
Because my PDF needs to update the content selected by the frontend and generate it at any time, I need to use server rendering mode
Thanks
Hi Qing Yuan,
Thank you for the update. We are currently reviewing the scenario involving both HTTPS and HTTP. We're encountering a CORS error when using HTTP and are actively investigating the issue. We will provide a further update by June 2.
Hi Qing Yuan,
We are currently unable to reproduce the issue based on the information provided.
To assist you further, could you please share the following details:
1. EJ2 PDF Viewer Component Details
2. Request & Response Logs
Please provide full network logs from the browser’s developer tools for both the HTTP and HTTPS scenarios:
For each request, include:
3. Environment Details
4. SSL Certificate and HTTPS Configuration
5. Sample for Replication (Optional but Helpful)
If possible, please provide a simple sample project that replicates the issue using the Angular platform.
This would greatly assist us in identifying the root cause and preparing a reference sample if needed.
Additionally, in your initial response, you mentioned:
“Because my PDF needs to update the content selected by the frontend and generate it at any time, I need to use server rendering mode.”
Please note that most scenarios requiring server rendering can also be achieved using standalone rendering. In many cases, server requests can be manually configured from the frontend at the sample level.
To help us determine the feasibility of using standalone mode in your case, could you kindly elaborate further on the specific use case of your application? Based on your explanation, we’ll explore the possibility of achieving this in standalone mode and provide a suitable reference sample.
Regards,
Priyadharshini