The only way to export .goodnotes files is to use the Goodnotes app or desktop software, because no other software can work with these files.
Goodnotes supports exporting to PDF simply by selecting the note in your documents, right-clicking on it, and using the Export to PDF option. By default, the new file is saved in the Downloads folder.