I am using Docker deployed PDF Viewer and Doc Editor Server, and node-filesystem as the file system provider
I can't find any errors.
We regret the delay. As we are still analyzing the reported issue, we will update further details on November 23, 2022. We appreciate your patience.
This issue occurs generally when the document name is wrong or the document path is wrongly referred.
Kindly provide the correct document path.
<ejs-pdfviewer id="pdfViewer" ref="pdfviewer" :serviceUrl="serviceUrl" :documentPath="documentPath" :documentLoad="documentLoad"> </ejs-pdfviewer>
The PDF document mentioned here must be located on the Web service sample(server side) and must be referred correctly.
I am using these two forums post as refers:
They are use the "documentLoad" not documentPath.
Please see my attachment
We need to ensure that the loaded document is located properly in the web service application before building the Docker image.
We can load the document using the documentPath and load method.
A documentLoad is an event that triggers after the document is loaded in the PDF Viewer.
Kindly find the API for the load method - https://ej2.syncfusion.com/vue/documentation/api/pdfviewer/#load
In the load method, we can load the document dynamically and also by referring document name.
What's your means of
"We need to ensure that the loaded document is located properly in the web service application before building the Docker image"
I was using official images from https://hub.docker.com/r/syncfusion/pdfviewer-server, file system is using node file system provider from https://github.com/SyncfusionExamples/ej2-filemanager-node-filesystem
I try to switch the file system provider to google drive, but it has the same problem.
I can clearly see the files and folder in the file manager, but when I click it, it shows the error
Syncfusion PDF Viewer is client-server-oriented. And we will process the PDF document on the server side (developed with the .NET environment) and send the processed PDF data to the client using the web service to render the PDF document and for further operations in PDF viewer.
In the sample, we have to add the document on the server side. We have attached the video of loading the sample and also we have attached the screenshot of the document located in the server sample.
In the pdfviewercontroller.cs file
We have to refer to the path correctly in getting the document path. Kindly find the code snippet for it below.
private string GetDocumentPath(string document)
string documentPath = string.Empty;
var path = HttpContext.Request.PhysicalApplicationPath;
if (System.IO.File.Exists(path + "Content\\Files\\" + document))
documentPath = path + "Content\\Files\\" + document;
documentPath = document;
We don’t have server-side support in Node.js.
Kindly check these changes and revert to us if you have any issues.
If you have set any configurations related to “Docker”. Kindly provide us with that details.
OK, I fixed the PDF viewer but the Doc editor still not work.
This is my docker-compose.yml, I mount my document folder under the /app/Data in the docker images.
#Provide your license key for activation
Here is my code for doc editor: