Many modern Linuxes can print PDFs directly, for example, via the "lpr" command. In this case, running pdftops is unneccessary and might even lose information. It would be better to print the PDF directly. We would need some way of determining if the printing system accepts PDFs or not.
According to http://www.cups.org/articles.php?L249+TFAQ+P1+Q, all CUPS systems should be able to handle PDFs:
>Yes! CUPS translates your file into information that your printer will >understand.
>By default CUPS takes your current media size you have assigned and centers each >page of the PDF to that.
So perhaps all we need to do is to determine if the queue is a CUPS queue or not.
Advantages of printing the PDF directly:
* Support for things that PS cannot handle, such as transparency.
* Faster print time. For example, thin terminals might take a very long time to convert PDF to PS. The conversion might even run out of RAM. During the conversion, tlclient is blocked.
* Reliability. The fewer conversion steps, the better. For example, fonts are problematic.