Posted 19 January 2022, 6:49 pm EST
Good day,
I am trying to use the PDFViewer to view files like PDF, Excel or other documents. Does the filePath attribute accepts the url of the path?
Forums Home / Wijmo / General Discussion
Posted by: germiep.fernandez on 19 January 2022, 6:49 pm EST
Posted 19 January 2022, 6:49 pm EST
Good day,
I am trying to use the PDFViewer to view files like PDF, Excel or other documents. Does the filePath attribute accepts the url of the path?
Posted 20 January 2022, 5:15 pm EST
Hello,
I’m afraid not, PdfViewer is only compatible with C1WebApi PDF Services and can only display the PDF returned from this API. So, you will need to pass the PDF through this web API. The serviceUrl should be the URL of this web API. You can refer to the documentation below that demonstrates how to create a C1WebApi server:
https://www.grapecity.com/componentone/docs/webapi/online-webapi/PDFDocumentServices.html
Please refer to the following links for more information:
Wijmo PDF Viewer Sample:
https://www.grapecity.com/wijmo/demos/Viewer/PdfViewer/Overview/purejs
Wijmo PDF Viewer docs:
https://www.grapecity.com/wijmo/docs/Topics/Viewer/PDF-Viewer
Wijmo PDF Viewer API:
https://www.grapecity.com/wijmo/api/classes/wijmo_viewer.pdfviewer.html
Regards