- Home
- Forum
- React - EJ 2
- How to open PDF Viewer using .pdf url?
How to open PDF Viewer using .pdf url?
Hi Team,
I have saved the pdf viewer data using saveAsBlob method and passed the blob data into AWS S3 and sample S3 URL is "https://clipapp-dev-files.s3.ap-south-1.amazonaws.com/reportfiles/80f5e4ed-1efa-4c58-8701-7ec9a3b07950/30511dae-ff93-456e-b60b-2df70c74bba3/pdf_annotation_rzpr969z2.pdf".
Now, I want to open/load pdf viewer with content available in above mentioned .pdf URL. Please let me know how to achieve this?
Also, Please tell me how to remove "Created with a trial version of Syncfusion Essential PDF" and sample demonstration ..... text from file.. I want to see file without any watermark or syncfusion related content inside. Please guide?
SIGN IN To post a reply.
5 Replies
AA
Akshaya Arivoli
Syncfusion Team
September 17, 2020 07:03 AM UTC
Hi Arul,
Thank you for contacting Syncfusion support.
Please find the details of your query from the below,
|
Query |
Details |
|
I have saved the pdf viewer data using saveAsBlob method and passed the blob data into AWS S3 and sample S3 URL is "https://clipapp-dev-files.s3.ap-south-1.amazonaws.com/reportfiles/80f5e4ed-1efa-4c58-8701-7ec9a3b07950/30511dae-ff93-456e-b60b-2df70c74bba3/pdf_annotation_rzpr969z2.pdf".
Now, I want to open/load pdf viewer with content available in above mentioned .pdf URL. Please let me know how to achieve this?
|
Our PDF Viewer does not have support to load the URL directly in the PDF Viewer. However, we can convert the URL provided in documentPath API to byteArray in the server-side Load() web action method, and then we can display the same in PDF Viewer. Please refer to the below link for more details,
Please refer to the below link to create PDF Viewer web service project and provide that URL to the serviceUrl property if the PDF Viewer,
https://www.syncfusion.com/kb/10346/how-to-create-pdf-viewer-web-service-application-in-asp-net-core
|
|
Also, Please tell me how to remove "Created with a trial version of Syncfusion Essential PDF" and sample demonstration ..... text from file.. I want to see file without any watermark or syncfusion related content inside. Please guide? |
We need to include the license key in the web service project. If you use our online demo link in your application then the trial message will appear. So we suggest you create your web service as provided in the link and need to add the license key in your project. Kindly refer to the below link for including the license-key in your project.
|
Please try it and revert us with more details if you still need further assistance.
Regards
Akshaya
AL
Arul Lakshmanan
September 17, 2020 08:09 AM UTC
Can you please give solutions in reactjs code? It seems that asp.net code in your solution.
AA
Akshaya Arivoli
Syncfusion Team
September 19, 2020 04:15 AM UTC
Hi Arul ,
We have created sample in react to load the pdf document from url and shared the same in the below link,
Web Service : https://www.syncfusion.com/downloads/support/forum/157901/ze/PDFViewerWebService_(11)-961222397
Note: Kindly run the web service project and provide that URL to the web service project.
Please try it and revert us with more details about your issue if you still have concerns.
Regards,
Akshaya
AL
Arul Lakshmanan
October 17, 2020 10:13 AM UTC
Hi,
Thanks for your support.
We ran the server and give end point to PDF component. It is not working.
Error:
"Web-service is not listening. PDF Viewer depends on web-service for all it's features. Please start the web service to continue."
Thanks for your support.
We ran the server and give end point to PDF component. It is not working.
Error:
"Web-service is not listening. PDF Viewer depends on web-service for all it's features. Please start the web service to continue."
MS
Mohan Selvaraj
Syncfusion Team
October 19, 2020 12:10 PM UTC
Hi Arul,
Can you please provide the error details and the response date which you have received in the Network tab on the browser console window? So that would be helpful for us to analyze more and assist you better.
Regards,
Mohan S
SIGN IN To post a reply.
- 5 Replies
- 3 Participants
-
AL Arul Lakshmanan
- Sep 16, 2020 12:39 PM UTC
- Oct 19, 2020 12:10 PM UTC