{"id":4319,"date":"2014-06-05T07:20:03","date_gmt":"2014-06-05T07:20:03","guid":{"rendered":"http:\/\/xislblogs.xtreamlab.net\/slwoods\/?p=4319"},"modified":"2014-06-05T07:20:03","modified_gmt":"2014-06-05T07:20:03","slug":"libreoffice-command-line-magic","status":"publish","type":"post","link":"https:\/\/www.slwoods.co.uk\/?p=4319","title":{"rendered":"LibreOffice command line magic"},"content":{"rendered":"<p>One of the delights about using Linux is the <a href=\"https:\/\/en.wikipedia.org\/wiki\/Command-line_interface\">command line interface<\/a> (CLI), where the user issues program commands by typing in successive lines of text.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.slwoods.co.uk\/wp-content\/uploads\/sites\/23\/2012\/11\/ODF_textdocument_48x48.png\" alt=\"ODF file icon\" width=\"48\" height=\"48\" class=\"alignright size-full wp-image-689\" \/>Even programs which rely on a <a href=\"https:\/\/en.wikipedia.org\/wiki\/Graphical_user_interface\">graphical user interface<\/a> (GUI) can be controlled from the command line, including the <a href=\"https:\/\/www.libreoffice.org\/\">LibreOffice <\/a>office suite.<\/p>\n<p>One of the great features of LibreOffice is the integral <a href=\"https:\/\/en.wikipedia.org\/wiki\/Pdf\">PDF<\/a> converter and this can even be controlled by command line using the command below without launching the program in a GUI.<\/p>\n<pre>$ libreoffice --headless --convert-to pdf name_of_file.odt<\/pre>\n<p>Just replace <em>name_of_file.odt<\/em> above with the actual file name you wish to convert, hit enter and the job&#8217;s done!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>One of the delights about using Linux is the command line interface (CLI), where the user issues program commands by typing in successive lines of text. Even programs which rely on a graphical user interface (GUI) can be controlled from the command line, including the LibreOffice office suite. One of the great features of LibreOffice [&hellip;]<\/p>\n","protected":false},"author":20,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,5,9],"tags":[24,12,23],"class_list":["post-4319","post","type-post","status-publish","format-standard","hentry","category-linux-and-os-matters","category-open-source-software","category-tech","tag-odf","tag-open-source","tag-tech-2"],"_links":{"self":[{"href":"https:\/\/www.slwoods.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/4319","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.slwoods.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.slwoods.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.slwoods.co.uk\/index.php?rest_route=\/wp\/v2\/users\/20"}],"replies":[{"embeddable":true,"href":"https:\/\/www.slwoods.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4319"}],"version-history":[{"count":2,"href":"https:\/\/www.slwoods.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/4319\/revisions"}],"predecessor-version":[{"id":4321,"href":"https:\/\/www.slwoods.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/4319\/revisions\/4321"}],"wp:attachment":[{"href":"https:\/\/www.slwoods.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4319"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.slwoods.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4319"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.slwoods.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4319"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}