The Shortcut “Make PDF” will do this (available from the Gallery in Shortcuts), There are a number of other alternatives as well, you mentioned DevonThink which I do not use, Evernote for instance. However, all these are in some way paid ones.
DT doesn‘t save PDFs on iOS. I think the „make pdf“ shortcut is the same as the pinch etc. method and doesn’t preserve links. There are webservices that work, but it’s kind of inconvenient to go to Safari for this.
I‘ll look into PDF Converter!
Okay, PDF Converter works now (I think my problem was due to a bad internet connection) BUT the links aren’t live in these PDFs either, so it’s of no use for me. That were unnecessary 8€ spent. Maybe I’ll need it to make a PDF out of a docx or whatever some day.
But the pdf that you save does not maintain the links that were in the webpage.
When you are on a Mac and then do a print of a web page to PDFpen Pro the links are maintained. You can open the PDF and click on a link and it will take you back to the web.
I found this app Instaweb that can preserve links when converting a webpage to PDF. It can also handles longer webpages for which Safari Markup would just truncate.