[opensource] Printing files from the command line

Brian Swaney swaney.29 at osu.edu
Fri Feb 6 23:19:24 EST 2009


The winner is _Paul Betts_. I am ashamed that the "man" command never 
occurred to me, in my favorite note-taking program even. Now might be a 
good time to mention that OpenOffice 3 will cover the DOCX requirement, 
so I believe this ticket should now be marked as "resolved".

-Brian Swaney


Paul Betts wrote:
>> I know that you can print files from the command line using 'lp' command.
>> But doing so requires a file to first be in ps format. I also know that
>> using 'pdf2ps' will convert a pdf file into the proper format for printing.
>> But what about printing .doc, .docx, .anything_other_than_pdf  formatted
>> files?
>>
>> My thought was to use the following algorithm:
>> (1) convert file to pdf
>> (2) convert pdf 2 ps using pdf2ps
>> (3) send to printer using lp
>> (4) Delete pdf and ps file (if not using pipes to pass things around)
>>     
>
> Oh, you kids are adorable:
>
> $ man oowriter
> ...
>        -pt printername filename...
>               Prints the given files to the printer printername and
> ends. The splash screen does not appear.
>
>               If the file name contains spaces, then it must be
> enclosed in quotation marks.
>   
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3237 bytes
Desc: S/MIME Cryptographic Signature
Url : http://mail.cse.ohio-state.edu/mailman/private/opensource/attachments/20090206/8fcf2c58/smime.bin


More information about the Opensource mailing list