does anyone know how to do this?

take a .doc file and print it to a .pdf using libreoffice?