I want to create PDF files which cannot be edited and that is the reason for asking this question.
If you're looking for setting security within the PDF itself, LibreOffice can do so. Use the
For command line conversion, the man page suggest that convert can use the options set in the Writer's Export as PDF dialog. So I suppose you could set it once in an instance of Writer, close it, and then use the