I've been trying to use the docx.js library to turn HTML with images into a .docx file solely on the client.
I build the HTML up as a string in the format:
<html xmlns:office="urn:schemas-microsoft-com:office:office" xmlns:word="urn:schemas-microsoft-com:office:word" xmlns="http://ift.tt/qQdaDR">
<head>
<xml>
<word:WordDocument>
<word:View>Print</word:View>
<word:Zoom>90</word:Zoom>
<word:DoNotOptimizeForBrowser/>
</word:WordDocument>
</xml>
<style>Some CSS</style>
</head>
<body>
Some HTML
</body>
Do I need to format this before using the convertContent function? If I get through that, how does the output link up with the docx function?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire