good afternoon to all.

i am creating a simple script to automate the printing of pdf, txt,
and xps files. i'm using this exercise as my first step in learning
ruby.

i am able to print doc, xls, and ppt files using code that i put
together from snippets i got off the net:

require 'win32ole'
...
app = WIN32OLE.new("word.application")
app.Documents.Open("/test.doc")
testfile = app.ActiveDocument
testfile.PrintOut()
...
testfile.Close()
app.Quit()
...


i haven't been able to find code snippets (or adequate win32ole
documentation) for printing .txt files (through notepad), or pdf or
xps.
is this even possible? through win32ole or otherwise?
if it is, can anyone provide me with the necessary details as to how?
if it is not possible, any suggestions for an alternative method?

thank you very much in advance.