Add bom processing support for mac

This is a spectacularly hack-y hack, based on code from:
    http://stackoverflow.com/questions/5274174/

It basically renders the xls file using preview to get an html
version which is then converted to a pdf.