Convert office documents to PDF using LibreOffice / OpenOffice to do the heavy lifting.