{"id":41,"date":"2006-01-24T15:23:53","date_gmt":"2006-01-24T15:23:53","guid":{"rendered":""},"modified":"2006-01-24T15:23:53","modified_gmt":"2006-01-24T15:23:53","slug":"docs_pdfs_and_open_formats_huh","status":"publish","type":"post","link":"https:\/\/blogs.gentoo.org\/seemant\/2006\/01\/24\/docs_pdfs_and_open_formats_huh\/","title":{"rendered":"Docs, PDFs and open formats.  Huh???"},"content":{"rendered":"<p>So here&#8217;s an interesting challenge. Where I work, I had to put together a server that converts word .doc format files to .pdf files for some of our documents.  After quite a bit of searching around (doc2pdf type programmes and scripts), I&#8217;d settled on <a href=\"http:\/\/adullact.net\/projects\/lbx-converter\/\">linbox converter<\/a>.  Basically it&#8217;s a daemon that runs on a windows machine that has MS Office installed as well as ghostscript and python.  A client sends a doc with a request for conversion into, for example, PDF format.  The daemon receives, runs office and prints to, for example, a PDF file which it then sends back to the client.<\/p>\n<p>The problem I&#8217;ve experienced is with this one document that has jpg pictures in it.  Linbox-converter (and even printing to PDF from word itself) seem to fail utterly and completely.  The result is some garbled 1.5K long file full of nonsense.  Here&#8217;s the magic: openoffice (2.01) will do the conversion just fine.<\/p>\n<p>Now the question: anyone out there know how one might send cmd line args to oowriter2 to do the conversion for me?  That way I can write a daemon (kinda like linbox converter I guess) that&#8217;ll just wrap around ooffice2 for the conversions.  Thoughts, suggestions?  Note: it has to be programmatic\/automatic\/system addict- yeah.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So here&#8217;s an interesting challenge. Where I work, I had to put together a server that converts word .doc format files to .pdf files for some of our documents. After quite a bit of searching around (doc2pdf type programmes and scripts), I&#8217;d settled on linbox converter. Basically it&#8217;s a daemon that runs on a windows &hellip; <a href=\"https:\/\/blogs.gentoo.org\/seemant\/2006\/01\/24\/docs_pdfs_and_open_formats_huh\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Docs, PDFs and open formats.  Huh???<\/span><\/a><\/p>\n","protected":false},"author":13,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/blogs.gentoo.org\/seemant\/wp-json\/wp\/v2\/posts\/41"}],"collection":[{"href":"https:\/\/blogs.gentoo.org\/seemant\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.gentoo.org\/seemant\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.gentoo.org\/seemant\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.gentoo.org\/seemant\/wp-json\/wp\/v2\/comments?post=41"}],"version-history":[{"count":0,"href":"https:\/\/blogs.gentoo.org\/seemant\/wp-json\/wp\/v2\/posts\/41\/revisions"}],"wp:attachment":[{"href":"https:\/\/blogs.gentoo.org\/seemant\/wp-json\/wp\/v2\/media?parent=41"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.gentoo.org\/seemant\/wp-json\/wp\/v2\/categories?post=41"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.gentoo.org\/seemant\/wp-json\/wp\/v2\/tags?post=41"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}