Open Office gives the option to print to pdf files.
LaTeX will produce output in a viariety of formats (postscript, dvi, pdf etc)
And stdout text can be piped to a text file.
So you need to think carefully about what you need the resulting file for
, and what kind of document you want to print in this way.
Say you want to print a M$.doc file to MS.prn ... *.prn files are viewable in gostscript - i.e. they are postscript
files. (Someone correct me if I am wrong here - but I think this is another case of M$ hiding information.)
Here's what it says under open office.org help:
To export a document or graphic in PostScript format:
1.If you have not yet done so, install a PostScript printer driver, such as the Apple LaserWriter driver.
2.Print the document with the File - Print menu command.
3.Select the PostScript printer in the dialog and mark the Print to file check box. A PostScript file will be created.