how to save as epub

how can I save a rtf-file as epub

If you’re using the latest version of LibreOffice, the option is right in the menu…

Just open the document and click:
File–>Export As–>Export As EPUB…

OR

File–>Export As–>Export Directly As EPUB

to easy thanks