When downloading the pdf from the viewer, the file name is showing as Document.pdf. Is there anyway to customize that?
.PdfjsProcessing(config => config.File(file => file.Data(Model.PdfInformation.PDFBase64)))
when you set this propery using setOptions
search stops working
It is recommended to use the setOptions method in PDFViewer to "update the dimensions of the widget, the active page or the processor".
You could either configure the defaultFileName initially or you could destroy and recreate the PDFViewer widget using the needed configuration. Here is a Dojo example where this is demonstrated.
I hope you will find the provided suggestion helpful.
In case the defaultFileName is set on initialization of the PDFViewer there should be no issue and the PDFViewer functionalities should work as expected. However, setOptions as mentioned earlier is not suitable for changing all the configuration options of the widget. I am afraid it is not suitable for DefaultFileName as well and in case you need to change the DefaultFileName after initialization of the widget, you will need to use the approach described above.