Hi Team,
How to change Default Download file name currently the filename is like “tH2IQEKsKZW5kc3RyZWFtDWVuZG9iag1zdGFydHhyZWYNMjc0OTc4DSUlRU9GCg== (4)”.
Can you please let me know how to change file name using WebViewer.
Thanks,
Suresh M
Hi Team,
How to change Default Download file name currently the filename is like “tH2IQEKsKZW5kc3RyZWFtDWVuZG9iag1zdGFydHhyZWYNMjc0OTc4DSUlRU9GCg== (4)”.
Can you please let me know how to change file name using WebViewer.
Thanks,
Suresh M
Hello, I’m Ron, an automated tech support bot
While you wait for one of our customer support representatives to get back to you, please check out some of these documentation pages:
Guides:You can change the download filename for the initialDoc by passing the filename
option into the WebViewer constructor. For loadDocument
calls you can pass filename
as an option in the second parameter. For example:
WebViewer({
initialDoc: '...',
filename: 'myfilename.pdf'
}, viewerElement);
https://www.pdftron.com/api/web/global.html#WebViewerOptions__anchor
instance.loadDocument('...', { filename: 'myfile.pdf' });
https://www.pdftron.com/api/web/WebViewerInstance.html#loadDocument
Hi Matt_Parizeau,
Thanks for your update. It is working fine now.
Thanks,
Suresh M