from what?
most OSs now have a default output-to-pdf for any application that has print capability
there is also pandoc
should have specified programmatically
Please Login to reply.
pandoc... with a shell script
also ```soffice --converto-to pdf [file]``` if you have LibreOffice on linux