{"id":21,"date":"2006-03-24T15:47:33","date_gmt":"2006-03-24T14:47:33","guid":{"rendered":"http:\/\/blogs.igalia.com\/eocanha\/?p=21"},"modified":"2015-11-08T00:21:18","modified_gmt":"2015-11-07T23:21:18","slug":"converting-openoffice-documents-using-command-line","status":"publish","type":"post","link":"https:\/\/eocanha.org\/blog\/2006\/03\/24\/converting-openoffice-documents-using-command-line\/","title":{"rendered":"Converting OpenOffice documents using command line"},"content":{"rendered":"<p><img align=\"left\" alt=\"OpenOffice.org 2.0 splash screen\" src=\"\/blog\/wp-content\/uploads\/2006\/03\/oo_splash1.jpg\" \/>Now that OpenOffice.org 2 is getting more and more popular, people is starting to migrate and to write documents in ODT format. However, for people who still aren&#8217;t able to install OO2 on their machines (outdated distros, outdated hardware or whatever) it&#8217;s a pain to receive such documents by email.<\/p>\n<p>It would be nice to have a tool that allows command line document conversion. So, a company can have that tool installed on a centralized host and the users would ssh into it in order to convert documents. to old formats or even to PDF.<\/p>\n<p>Browsing the web, I have found an <a href=\"http:\/\/www.xml.com\/pub\/a\/2006\/01\/11\/from-microsoft-to-openoffice.html\">article telling exactly how to do that<\/a>. I&#8217;ve tried the instructions and all worked fine.<\/p>\n<p>I went beyond and move the macros to a common place (\/opt\/openoffice.org2.0\/presets\/basic\/ConvertidorPDF), so they can be used by all users without the need to install them in every account. You may need to edit some script.xlb files to make it work, just have a look about how it has been done for the other macros and macro libraries.<\/p>\n<p>In addition to that, I wrote a script and put it in \/usr\/local\/bin, so all users can now convert documents to the format they like without the need to launch any window.<\/p>\n<p>I stopped here, but I&#8217;ve great ideas in mind: create a kind of CGI, maybe in PHP, and publish a webpage in our intranet, so everyone could go there, submit his or her document, and receive a PDF or an older format.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Now that OpenOffice.org 2 is getting more and more popular, people is starting to migrate and to write documents in ODT format. However, for people who still aren&#8217;t able to install OO2 on their machines (outdated distros, outdated hardware or whatever) it&#8217;s a pain to receive such documents by email. It would be nice to &hellip; <a href=\"https:\/\/eocanha.org\/blog\/2006\/03\/24\/converting-openoffice-documents-using-command-line\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Converting OpenOffice documents using command line<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[2],"tags":[],"_links":{"self":[{"href":"https:\/\/eocanha.org\/blog\/wp-json\/wp\/v2\/posts\/21"}],"collection":[{"href":"https:\/\/eocanha.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/eocanha.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/eocanha.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/eocanha.org\/blog\/wp-json\/wp\/v2\/comments?post=21"}],"version-history":[{"count":1,"href":"https:\/\/eocanha.org\/blog\/wp-json\/wp\/v2\/posts\/21\/revisions"}],"predecessor-version":[{"id":463,"href":"https:\/\/eocanha.org\/blog\/wp-json\/wp\/v2\/posts\/21\/revisions\/463"}],"wp:attachment":[{"href":"https:\/\/eocanha.org\/blog\/wp-json\/wp\/v2\/media?parent=21"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/eocanha.org\/blog\/wp-json\/wp\/v2\/categories?post=21"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/eocanha.org\/blog\/wp-json\/wp\/v2\/tags?post=21"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}