For reuse in other programs and projects, we made a separate standalone script doc2pdf.py to convert any document that LibreOffice can handle to PDF. The doc2print.py script can print an unlimited ...