privateOmega/html-to-docx

Can't open file in Microsoft Word

Opened this issue · 4 comments

Tried this on both Windows and Mac, getting the same error.
image

I did try to open it in both LibreOffice and Pages -- both work, but not in Word.

@ohitsdoh Could you please attach the code you used to generate it with the html?

The same issue is happening for me as well
It opens in any other software but not in word

grin commented

In my case it was the same problem as described in: #57 (comment) and adding missing margin params fixed it

I have same issue that cannot open the doc/docx file with MS Word (only MS Word)

const docxDocument = await HTMLtoDOCX(
   '<!doctype html><html><head></head><body>' + dataReplaced + '</body></html>'
);

dataReplaced is a html string.
Please help me out.