docx4js icon indicating copy to clipboard operation
docx4js copied to clipboard

Please add a documentation

Open jankapunkt opened this issue 7 years ago • 1 comments

I have some questions:

  • Can I pass another source for the docx than just a path (such as File, Blob etc.)
  • Is there a debug option? There are no errors thrown to indicate wrong input
  • Are there specific things to consider, when using in the browser?

It would be great if you can help me with those questions.

Edit: I wanted to get some information about the object but console.log(docx4js) only prints

function _class() {                                                                                                   // 26
		_classCallCheck(this, _class);                                                                                       // 27
                                                                                                                       // 28
		return _possibleConstructorReturn(this, (_class.__proto__ || Object.getPrototypeOf(_class)).apply(this, arguments));
	}

When I call the load function then I get just a cryptic message in the promise reject:

TypeError: this.rels is not a function. (In 'this.rels("[Type$=\"" + type + "\"]")', 'this.rels' is undefined)

jankapunkt avatar Sep 27 '17 14:09 jankapunkt

how's your code looks like?

lalalic avatar Oct 18 '21 00:10 lalalic