|
Query |
Details | |
|
Serve a document that is stored server-side.
|
we have created the sample for saving the PDF document on the server-side. Using download icon from the toolbar, we can use the below code snippet to save the document in server side.
Controller code:
| |
|
User fills out any form fields as desired. So far, these forms do not contain any PDF validations or other logic.
|
In our PDF Viewer, we need to set the property EnableFormFieldsValidation as true to validate the form fields. We have an event ValidateFormFields to check whether all the fields are filled or not, before downloading the document. If any form field is non-fillable while downloading, the validateFormFields event will gets triggered. We have shared the code snippet and sample for your reference.
Code snippet:
Sample:
| |
|
When User submits the form back to the server, the server performs a `pdfviewer.ExportFormFields()` function using the jsonObject that was sent by the user.
However, on this last step, instead of obtaining a Base-64 string as expected, we get the message "Document Reference pointer does not exist in the cache".
|
We were unable to reproduce ether reported issue. And we have shared the sample in which we tried to replicate the reported issue.
Sample:
Kindly try it and let us know, if you still have any concerns.
| |
|
We've been attempting to replicate this issue on our development server, but so far have not been able to reproduce this error. Additionally, it is some users that are experiencing this issue: other users are able to Is there some cache setting that is important to consider in order to prevent this issue?
|
We will store the document in the cache based on the hashid during the initial loading of the pdf file. Then on scrolling or navigating to that page we will send the hashid and required page number from the client-side and then we will retrieve the page details with the hashid on the server-side. So the cache is required for rendering the PDF pages in our PDF Viewer control. |