If you set up WhatsApp to create a backup, you have the option to recover deleted messages on the app.
It's easy to download a PDF document on an iPhone and save it to an app like Apple Books or iCloud Files. Here's how to do it.