accepts a file, uses libreoffice to convert file to pdf, and returns the pdf.