libreoffice libreoffice --headless --convert-to pdf [file-name] export as pdf libreoffice --writer open libreoffice writer