Is there a way to extract whole postgres schema without the data ?

Is there a way to extract whole postgres schema without the data ?

Hello I am looking for a solution to extract all my postgres schema to a file. DDL format would be nice.
Thank you for help!