Why not use Print or Notes?
The Print sheet's hidden pinch-to-PDF trick and the Notes document scanner both work, but they give you little say over page size and margins, and Print can shrink photos to fit a page with wide borders.
Here each photo is placed on A4 or Letter, or a page the shape of the photo, turned upright, with HEIC photos handled directly. The PDF saves to Downloads in Files.