anytopdf is a perl script that converts OpenOffice.org, Microsoft Office (Word DOC, Excel XLS), RTF, HTML, and other openoffice.org readable file formats to the PDF format. It will automatically install the supporting 'AnyToPDF' OpenOffice.org Basic macro library in the current user's OpenOffice.org configuration if it's not already present.
Dedicated to peace, love, understanding and respect for all beings.
Usage
anytopdf <input file> <output file.pdf>
Requires
- Requires OpenOffice.org v3+
- Unix-style platform
- perl
Thanks
- http://www.togaware.com/linux/survivor/Convert_MS_Word.html / DannyB : original macro code
- OpenOffice.org users and contributors
- Unix hackers with a conscience who don't work for morally bankrupt corporations, governments and militaries.
Notes
- Not very efficient as it has to start an entire OpenOffice.org instance for each execution
- Does not support attempts to use file names with commas, brackets, quotes or new lines (due to system() issue: see Contribute section below...)
Contribute
- Write a daemon version using some form of IPC with the macro library, so that multiple executions can run against a single OpenOffice.org instance
- Fix the perl system() issue (see source)
- Adapt to support other (eg: windows) platforms