Closed SIRAAJ-UI closed 4 years ago
The document are sent to the google or office viewer. You have be online for that. This cannot be changed
Hi @whitegoat npm i ngx-doc-viewer@next
will have the mammoth viewer. Which converts docx to html locally.
Also add mammoth:
npm install mammoth --save
and make sure mammoth.browser.min.js is loaded. For the angular/cli you would add the following in angular.json:
"scripts": [
"node_modules/mammoth/mammoth.browser.min.js"
]
See the demo site in local-files branch for example code.
Hi Marcelh,
Is this working offline?, example if i dont have internet connection at some point? Currently i need to check the offline version also.
Thanks & Regards, SK