Build causes error on server Missing PDF

Hi @kkim

Thank you for providing such wonderful support. And sorry for the late reply. Updating the library fixed the error that we were facing earlier. Now we have replaced the library version to 8.7.5 and it seems to be working.
We have come across one situation. It works on many devices but in some devices we are getting errors.
In few devices it says “The API version 2.4.283 does not match the worked version 2.4.280”, in some devices it opens the pdf and we are able to edit it, but when we click on save button, it keeps loading but does not save the changes.

We have integrated the our pdf markup in the mobile apps using “WebView”, so it loads our website directly to the App for the markup. In the mobile app also we are facing same thing, in some app it works in some app we are facing the issue as mentioned above.

Could you please let us know more about this?

Thanks & regards

Hi there,

I am not sure what that error could be, could you please share a screenshot of the error message if it is coming from the console?

And when you mention changes, do you mean annotations that you have created? Are they being exported/imported? (Importing and exporting annotations | Documentation)

best regards,
Kevin

@kkim Thank you for the response.
There is no error inside console, but the error is inside webviewer. Please find the attached screenshot of the error we are facing.

when I mention changes, I meant to say Markup. In the devices I am able to open the pdf in webviewer, it does not allow to save markup. The loader keeps loading but there is nothing. When I close and open the PDF, it does not load any markup.

So there are 2 scenarios in which I need your help.

  1. The error “The API version 2.4.283 does not match the worked version 2.4.280” when I open the markup (specially in IOS devices like iPhone, iPad, etc.
  2. In some windows devices we are able to open the webviewer, but not able to save the markup.

Thanks & Regards

Thank you for your response,

For the first issue, can you share which WebViewer APIs you are using? What kind of document are you loading and how are you loading it? Does the error show up when you loading the same document as before via a url?

For the second issue, there are 2 ways to ‘save’ the annotation:

  1. Use the merge API: Merging XFDF using the Express REST API | Documentation
    This saves the annotation into the document

  2. Use export/import method to save your annotations via a file/server/database and then load it back when you load it into the viewer. (the guide mentioned before)

best regards,
Kevin

@kkim Thank you for the response.
We are loading the PDF using the same code I passed you earlier. There is no change in that one. The document is loading properly in our local and development server, but the issue is being faced on the production server.
The error of API arised in recent time, Earlier there was no error regarding the API.

Thanks & Regards

For the production server, can you verify that you cleared cache after re-building/deploying your project?

Best regards,
Kevin