4
4
I have students who, when asked for PDF, sometimes hand me an OpenOffice document or spreadsheet. file(1)
can identify these documents, but I've been unable to discover how to convert them to PDF using the command line. (The man page for ooffice(1)
lists an option to print a document but not to convert to PDF.) Google is unhelpful, except for giving me the uneasy feeling that this can't be done without a nifty script in a language I don't know against an API whose documentation I can't find.
Can anyone help me solve the problem of converting an OpenDocument to PDF using only the Unix command line?
2
unoconf file.odt file.pdf
is the better way. You'll get the yummy metadata that a pdf printer doesn't include. – Tobu – 2010-06-11T14:37:41.533Gross, but it should work, thanks. Link to Ubuntu thread with details of the filename gets the check mark. – Norman Ramsey – 2010-01-05T20:29:35.520