These are two different jobs. A PDF password travels with the file: whoever gets it by email or WhatsApp needs the password. A document vault protects what stays on your phone, but doesn't put a password on the file you share.
Step by step in Preview
Preview requires iOS 26. From Apple's guide:
- Open the PDF in Preview.
- Tap the arrow next to the file name at the top.
- Tap Lock, enter a password and confirm.
Keep the password somewhere safe: if you forget it, you can't open the locked PDF.
On an older iOS?
Without Preview, the built-in option is to keep the document in a locked note, which accepts your iPhone passcode or a separate Notes password (Apple). Password-PDF websites work too, but they receive a copy of your file.
Keep documents locked on your phone
If the goal is to keep IDs, contracts and medical records protected on the iPhone itself, one password per PDF turns into a pile of passwords. SafeDoc locks the whole app with a PIN or Face ID, sorts documents into folders and finds any of them by a word inside.
See also how to hide files on iPhone.