{"id":1561,"date":"2023-02-17T05:01:53","date_gmt":"2023-02-17T05:01:53","guid":{"rendered":"https:\/\/www.tools.keywordfinder.us\/?page_id=1561"},"modified":"2023-02-17T05:01:53","modified_gmt":"2023-02-17T05:01:53","slug":"text-to-word","status":"publish","type":"page","link":"https:\/\/tools.billionsideas.com\/de\/text-to-word\/","title":{"rendered":"Text To Word"},"content":{"rendered":"<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column has-base-3-background-color has-background is-layout-flow wp-block-column-is-layout-flow\">\n<section><h1>Text File to Word Converter<\/h1><br>\n    <link rel=\"stylesheet\" type=\"text\/css\" href=\"styles.css\">\n  \n    <input type=\"file\" id=\"file-input\" onchange=\"readTextFile()\"><br><br>\n    <div id=\"file-content\"><\/div>\n    <button id=\"download-btn\" onclick=\"downloadAsWord()\" disabled=\"\">Download as Word<\/button><br><br>\n    <script src=\"script.js\"><\/script>\n<\/section>\n<script>\nfunction readTextFile() {\n  var input = document.getElementById(\"file-input\");\n  var file = input.files[0];\n\n  if (file) {\n    var reader = new FileReader();\n    reader.onload = function() {\n      var fileContent = document.getElementById(\"file-content\");\n      fileContent.innerHTML = this.result;\n      document.getElementById(\"download-btn\").disabled = false;\n    };\n    reader.readAsText(file);\n  }\n}\n\nfunction downloadAsWord() {\n  var fileContent = document.getElementById(\"file-content\").innerHTML;\n  var blob = new Blob([fileContent], { type: \"application\/msword\" });\n  var url = URL.createObjectURL(blob);\n  var a = document.createElement(\"a\");\n  a.href = url;\n  a.download = \"file.doc\";\n  a.click();\n}\n\n<\/script>\n\n\n\n<style>\n      section{\n         margin-top:60px;\n        width: 100%;\n        max-width: 970px;\n        background-color: #fff;\n        border: 1px solid #ddd;\n        padding: 25px;\n      }\n\n<\/style>\n<\/div>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Text File to Word Converter Download as Word<\/p>","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","footnotes":""},"class_list":["post-1561","page","type-page","status-publish"],"taxonomy_info":[],"featured_image_src_large":false,"author_info":{"display_name":"Billions Ideas","author_link":"https:\/\/tools.billionsideas.com\/de\/author\/loginbillionsideas-com\/"},"comment_info":0,"jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tools.billionsideas.com\/de\/wp-json\/wp\/v2\/pages\/1561","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tools.billionsideas.com\/de\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/tools.billionsideas.com\/de\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/tools.billionsideas.com\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tools.billionsideas.com\/de\/wp-json\/wp\/v2\/comments?post=1561"}],"version-history":[{"count":0,"href":"https:\/\/tools.billionsideas.com\/de\/wp-json\/wp\/v2\/pages\/1561\/revisions"}],"wp:attachment":[{"href":"https:\/\/tools.billionsideas.com\/de\/wp-json\/wp\/v2\/media?parent=1561"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}