21
Views
7
Comments
Mammoth js
Application Type
Reactive
Service Studio Version
11.55.4 (Build 63890)
Platform Version
11.33.0 (Build 44426)

Hi team Good day,
  Currently implementing the Mammoth js for word document viewer. so the cdn has applied in required script, but still i can't able to acess the mammoth properties, anyone could help me out.please refer the below url for reference.
https://jstool.gitlab.io/demo/mammoth-js-word-docx-preview-and-convert/

below issue i have facing.

2024-07-12 05-57-50
Gourav Shrivastava
Champion

Hello @Muruga Nandan 

I would suggest that you pleas go to that cdn URL and copy the whole JS create a script inside service studio and add that to your screen and then check again


Thanks 


 

UserImage.jpg
Muruga Nandan

Hi @Gourav Shrivastava, thanks for the reply, I have tried this approach also, the same issue is encountering

2024-07-12 05-57-50
Gourav Shrivastava
Champion
2024-07-12 05-57-50
Gourav Shrivastava
Champion

Just need to find and comment this line 


i.e.  module.exports = require('stream'); // commented this statement

UserImage.jpg
Muruga Nandan

Yeah @Gourav Shrivastava, i have checked this already and try to comment in the  file, but in the source file there is no syntax like this module.exports = require('stream'); 

2024-07-12 05-57-50
Gourav Shrivastava
Champion

Then try to use Office to HTML component , I have implemented same in this 

2024-07-12 05-57-50
Gourav Shrivastava
Champion

@Muruga Nandan   Also, you can use Office to HTML component , it is useful to display all types files including word 
I used the same JS

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.