If you are using Gimp 2.10 then the facility to export as a multi-page pdf is already there:
Why not give us a clue and state your computer OS (Win / OSX / linux) and version of Gimp.
Why not give us a clue and state your computer OS (Win / OSX / linux) and version of Gimp.