When you see the PDF, you can save it to your Files. Later, locate your saved web pages under More > Reading List, and your downloaded PDFs in Apple's Files app. Similar to Chrome's feature for ...
When called, saveaspdf() attempts to re-render the page on a hidden <canvas> element. It then outputs the canvas to an image/png datastream and saves it into a new PDF. This is a naive approach, but ...