Joe Van Dyk
12/13/2005 8:17:00 AM
On 12/12/05, Peña, Botp <botp@delmonte-phil.com> wrote:
> Hi All,
>
> pdfwriter rocks but me brain does not :)
> how does one print a pdf object using ruby? i can create it fine using #save_as. i was looking for something like #print...
>
> i'd like to print it in windows and linux env.
>
> thanks and kind regards -botp
Doubt you can print straight from Ruby.
However, in Linux and maybe OS X, you can execute shell commands that
will print stuff. `lpr #{ file_name_of_pdf_file }` should print the
file to some default printer. No clue about Windows.