title: Converting HTML + Javascript to Word/OpenOffice document programatically
body: <p>How can I convert a <strong>whole HTML page with JS-drawn canvases</strong> to an editable format on a <strong>server</strong>?</p>
  
  <p>My web app generates pages with some basic HTML + CSS and with <a href="https://github.com/flot/flot" rel="nofollow noreferrer">Flot</a> charts (which basically draw on <code>canvas</code> HTML tag with JavaScript). I can convert them to PDF with <code>wkhtmltopdf</code> and it works great, but I am having problems finding a way to convert them to a format which would be recognized by MS Word, OpenOffice Writer and/or LibreOffice Writer.</p>
  
  <p>P.S.: I have seen <a href="https://stackoverflow.com/questions/8382366/converting-html-to-odt-doc-docx">this question</a>, but it applies to raw HTML only (without JS).</p>