Thanks Anand, for this work. I am interested in knowing if there are any
OS specific requirements for this to work.
Emacs uses Ghostscript for printing infrastructure. So if your OS supports Ghostview or a clone, this should work.