{"id":14749,"date":"2026-11-30T01:01:00","date_gmt":"2026-11-30T06:01:00","guid":{"rendered":"https:\/\/www.both.org\/?p=14749"},"modified":"2026-11-16T15:10:25","modified_gmt":"2026-11-16T20:10:25","slug":"how-long-does-it-take-to-convert-57-odt-files-to-pdf","status":"publish","type":"post","link":"http:\/\/www.both.org\/?p=14749","title":{"rendered":"How Long Does it Take to Convert 57 ODT files to PDF?"},"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=\"14749\" 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 class=\"wp-block-paragraph\">In August of 20254, Both.org published an interesting article by regular contributor Don Watkins, &#8220;<a href=\"https:\/\/www.both.org\/?p=11335\" target=\"_blank\" rel=\"noopener\">Bulk Document Conversion Made Easy with LibreOffice<\/a>.&#8221; That article covered the use of LibreOffice to perform bulk conversions of documents from one format to another &#8212; at the command line.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I recently needed to convert the 57 chapters of the 3rd edition of my &#8220;<a href=\"https:\/\/www.both.org\/?page_id=14375\" data-type=\"link\" data-id=\"https:\/\/www.both.org\/?page_id=14375\" target=\"_blank\" rel=\"noopener\">Using and Administering Linux<\/a>&#8221; book series.  Those 57 ODT files needed to be converted to PDF files for my publisher, and I really didn&#8217;t want to do them one at a time using the GUI. For that I&#8217;d have needed to open each file individually, and then used the Save-As function to save them into PDF format.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">So I referred to Don&#8217;s article which gave me the command I needed to perform that task. It was quite simple. The details are available in his article.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">My command was simple. <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>time soffice --headless --convert-to pdf *.odt<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The <code>time<\/code> command preceding the <code>soffice<\/code> command tells me how long it took in real time. I used the file glob *.odt to prevent document files with other extensions in that directory, such as docx, from also being converted.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">OpenOffice completed the conversion in almost exactly 30 seconds. That certainly saved me a lot of time using the GUI interface. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Soffice stands for StarOffice, which was the original version of LibreOffice. That command has been retained to maintain backwards compatibility, even after the fork to LibreOffice.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>real 0m30.058s<br>user 0m29.850s<br>sys 0m1.064s<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Of course, the original ODT documents aren&#8217;t changed or deleted.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">LibreOffice supports a number of formats for many document types. <\/p>\n\n\n\n<figure class=\"wp-block-table aligncenter\"><table class=\"has-fixed-layout\"><tbody><tr><td class=\"has-text-align-center\" data-align=\"center\"><strong>Document Type<\/strong><\/td><td class=\"has-text-align-center\" data-align=\"center\"><strong>Input Formats<\/strong><\/td><td class=\"has-text-align-center\" data-align=\"center\"><strong>Output Options<\/strong><\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\"><strong>Word Processing<\/strong><\/td><td class=\"has-text-align-center\" data-align=\"center\">DOCX, DOC, ODT, RTF, TXT, HTML<\/td><td class=\"has-text-align-center\" data-align=\"center\">PDF, DOCX, ODT, TXT, EPUB<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\"><strong>Spreadsheets<\/strong><\/td><td class=\"has-text-align-center\" data-align=\"center\">XLSX, XLS, ODS, CSV<\/td><td class=\"has-text-align-center\" data-align=\"center\">PDF, CSV, XLSX, ODS, HTML<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\"><strong>Presentations<\/strong><\/td><td class=\"has-text-align-center\" data-align=\"center\">PPTX, PPT, ODP<\/td><td class=\"has-text-align-center\" data-align=\"center\">PDF, PPTX, ODP, SWF<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\"><strong>Drawings\/Vector<\/strong><\/td><td class=\"has-text-align-center\" data-align=\"center\">VSD, VSDX, ODG, SVG<\/td><td class=\"has-text-align-center\" data-align=\"center\">PDF, PNG, SVG<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes the command line is just so much better!<\/p>\n","protected":false},"author":2,"featured_media":11340,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","footnotes":""},"categories":[589,237,5],"tags":[582,133],"class_list":["post-14749","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-document-conversion","category-libreoffice","category-linux","tag-document-conversion","tag-libreoffice"],"modified_by":"David Both","_links":{"self":[{"href":"http:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/posts\/14749","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.both.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=14749"}],"version-history":[{"count":19,"href":"http:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/posts\/14749\/revisions"}],"predecessor-version":[{"id":14774,"href":"http:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/posts\/14749\/revisions\/14774"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/media\/11340"}],"wp:attachment":[{"href":"http:\/\/www.both.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=14749"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.both.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=14749"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.both.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=14749"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}