{"id":11335,"date":"2025-08-04T01:02:00","date_gmt":"2025-08-04T05:02:00","guid":{"rendered":"https:\/\/www.both.org\/?p=11335"},"modified":"2025-08-05T08:39:37","modified_gmt":"2025-08-05T12:39:37","slug":"bulk-document-conversion-made-easy-with-libreoffice","status":"publish","type":"post","link":"https:\/\/www.both.org\/?p=11335","title":{"rendered":"Bulk Document Conversion Made Easy with LibreOffice"},"content":{"rendered":"<div class=\"pld-like-dislike-wrap pld-template-1\">\r\n    <div class=\"pld-like-wrap  pld-common-wrap\">\r\n    <a href=\"javascript:void(0)\" class=\"pld-like-trigger pld-like-dislike-trigger  \" title=\"\" data-post-id=\"11335\" data-trigger-type=\"like\" data-restriction=\"cookie\" data-already-liked=\"0\">\r\n                        <i class=\"fas fa-thumbs-up\"><\/i>\r\n                <\/a>\r\n    <span class=\"pld-like-count-wrap pld-count-wrap\">    <\/span>\r\n<\/div><\/div>\n<p>&nbsp;I have many documents created with Microsoft Office for assignments written for graduate school courses years ago. How can I easily convert those dozens of documents to a different format without using an online application? This is an excellent example of the power of open source.<\/p>\n\n\n\n<p>Five years ago, I took a course at a local university where all of the documents were provided in \u2018docx\u2019 format. Is there a way to convert those documents to an \u2018odt\u2019 format? There is, and it is quite simple.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$libreoffice --headless --convert-to odt *.docx<\/code><\/pre>\n\n\n\n<p>What if I decided I wanted to convert those \u2018docx\u2019 items to \u2018html\u2019 so they could easily be shared on my classroom website? What if I had wanted to convert all those documents to HTML?<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$libreoffice --headless --convert-to html *.docx\n<\/code><\/pre>\n\n\n\n<p>I can use the same tool to convert those \u2018docx\u2019 files into \u2018pdf\u2019 files with a single iteration of the same command.<\/p>\n\n\n\n<p>$libreoffice \u2013headless \u2013convert-to pdf *.docx<\/p>\n\n\n\n<p><span style=\"box-sizing: border-box; margin: 0px; padding: 0px;\">Using&nbsp;<a href=\"https:\/\/www.libreoffice.org\/\" target=\"_blank\">LibreOffice<\/a>&nbsp;from the command line inside the directory where the files you want to convert are is easy, and the conversion is accomplished in a matter of seconds, depending on your processor and memory.<\/span> You can find many more uses of LibreOffice from the command line by entering the following command on your own command line if you have LibreOffice installed, as most Linux distributions do.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$libreoffice --help<\/code><\/pre>\n\n\n\n<p>This is an excellent example of the power of open source software.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp;I have many documents created with Microsoft Office for assignments written for graduate school courses years ago. How<\/p>\n","protected":false},"author":32,"featured_media":11340,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","footnotes":""},"categories":[237,14,80],"tags":[133,802],"class_list":["post-11335","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-libreoffice","category-open-source-software","category-tips-and-tricks","tag-libreoffice","tag-tips-and-tricks"],"modified_by":"David Both","_links":{"self":[{"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/posts\/11335","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/users\/32"}],"replies":[{"embeddable":true,"href":"https:\/\/www.both.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=11335"}],"version-history":[{"count":2,"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/posts\/11335\/revisions"}],"predecessor-version":[{"id":11341,"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/posts\/11335\/revisions\/11341"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/media\/11340"}],"wp:attachment":[{"href":"https:\/\/www.both.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11335"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.both.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=11335"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.both.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=11335"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}