Implement PDF viewer
Hello Team,
I am using ejPdfViewer to show the pdf. In your documentation I saw that there is pdfService and serviceurl to load the pdf document. Can you please suggest how can I user those to load my pdf Blob object. More specifically where to use the URL of my pdf document.
Thank You
SIGN IN To post a reply.
6 Replies
1 reply marked as answer
AA
Akshaya Arivoli
Syncfusion Team
November 23, 2020 11:55 AM UTC
Hi Debanjan,
Thank you for contacting Syncfusion support.
The PDF viewer does not support loading the PDF document from the URL directly on the server-side. However, you can load the PDF document by converting the URL to ByteArray at the sample level. Refer to the below KB link to load the PDF document from the URL
We have also shared the sample for the same in the below link,
Kindly try it and revert us with more details about your requirement if you still have concerns.
Regards,
Akshaya
DR
Debanjan Routh
February 22, 2021 05:59 AM UTC
Hello Team,
When loading PDF document from service URL by providing e-serviceurl, I am getting 500 internal server error on https://js.syncfusion.com/ejservices/api/PdfViewer/Load. Can you please check and provide me any example how to solve this issue?
When loading PDF document from service URL by providing e-serviceurl, I am getting 500 internal server error on https://js.syncfusion.com/ejservices/api/PdfViewer/Load. Can you please check and provide me any example how to solve this issue?
Thank you
DM
Dhivyabharathi Mohan
Syncfusion Team
February 23, 2021 11:41 AM UTC
Hi Debanjan,
We were unable to reproduce the reported issue. And we have shared the sample in which we tried to replicate the reported issue.
Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/default_(2)_(4)-1850220313
Kindly try it and revert us with sample in which you are facing issue. It will be helpful for us to investigate further and provide details.
Regards,
Dhivya.
DR
Debanjan Routh
February 24, 2021 05:28 AM UTC
My request is failing on the following URL: https://js.syncfusion.com/ejservices/api/PdfViewer/Load
Please see my attachment for the request payload.
Attachment: payload_ef44aa17.zip
Please see my attachment for the request payload.
Attachment: payload_ef44aa17.zip
Thank you
DM
Dhivyabharathi Mohan
Syncfusion Team
February 25, 2021 09:31 AM UTC
Hi Debanjan,
We were able to reproduce the reported issue randomly. We will analyze further and provide details on March 2nd, 2021.
Regards,
Dhivya.
DM
Dhivyabharathi Mohan
Syncfusion Team
March 3, 2021 02:07 PM UTC
Hi Debanjan,
We were able to load with the base64 provided in your previous update with our online serviceURL. We suspect the request may gets failed due to some network problem. The provided URL is only for demo purpose. We can’t use it in the production environment and if we use the same then there may be some licensing issue or sometimes the trial watermark will get added to the page. So, we suggest you to create one web-service separately by installing all the dependent NuGet, then run the same and refer to the localhost:xxxx/ api/PdfViewer in the Service URL property.
Regards,
Dhivya
Marked as answer
SIGN IN To post a reply.
- 6 Replies
- 3 Participants
- Marked answer
-
DR Debanjan Routh
- Nov 20, 2020 12:49 PM UTC
- Mar 3, 2021 02:07 PM UTC