As noted, neither offers both “full fidelity” and “accessible”. The print approach seems the closest to your likely need, if you’re willing to not have the page be 1:1 identical visually.
I think a page button can open the print dialog, but I don’t believe you can force it to use the “Save as PDF” option. Maybe a modal pop-up first that explains the steps, then when closed brings up the print dialog?
Otherwise, no clue on alternative solutions. I would be curious to know if there is anything.
I know I can print a page to PDF. I don’t count on users’ abilities to know that, though. I would love to have an easy button for visitors to click and download a PDF of the current page, but I suspect the solution is much more complex than I want to know.
To offer briefly: Yeah, we helped out with a “use an open-source library to generate PDFs from HTML pages” project in the past, but it ended up being a many-tendriled beast that took awhile to get working, never quite worked 100% how you’d hoped, and in the end did not make accessible PDFs. Adding to that, I didn’t get the sense from the library’s maintainers that there was energy around the idea of revamping it to provide accessible PDFs. So, I agree, PDF generation is something we’ve also decided to steer clear of internally in the future.