I need an expensive textbook for school, and a classmate sent me a PDF they got from someone else. I don't know where it originally came from. Could opening it on my iPhone infect the phone, or is it generally safe to use?
4 Answers
The more realistic danger is phishing rather than a virus. A PDF might contain a link or QR code leading to a fake sign-in page. Don’t enter your Apple ID, school, email, or banking credentials after following links from the document, and be cautious if it asks you to install a profile or app.
If the file came from an unknown source, you can avoid opening it directly on your phone and ask your school or library whether they provide legal access to the textbook. If you do open it, update the phone first, avoid embedded links, and delete it if it behaves strangely or asks for permissions.
PDF files can contain things like JavaScript or malformed data, so there have been real PDF-related security vulnerabilities in the past. However, they generally require an outdated or vulnerable reader. On a current iPhone, the practical risk is low, but an old device that hasn’t received updates is a different story.
It’s technically possible, but very unlikely on an iPhone that’s fully updated. A malicious PDF would need to exploit a vulnerability in iOS or the PDF viewer, and those attacks are usually patched quickly. Install the latest iOS updates before opening it, and use the built-in viewer rather than an unfamiliar PDF app.

Exactly—there’s no absolute guarantee, but “possible in theory” is very different from “likely to happen.” Keeping iOS updated is the most important precaution.