How to save files in pdf format?

LibreOffice Writer > File > Export as PDF.

Then Click Export in the dialog box that just popped up.

Make sure that you are using the latest version.