How to Protect from PDF Virus?
1. Disable JavaScript on your PDF reader: If you are using Adobe Reader then Open Adobe Reader and go to “Edit -> Preferences” or simply press “CTRL + K”. From the sidebar, select JavaScript and uncheck “Enable Acrobat JavaScript”.
2. Do not allow PDF reader to execute Non-PDF files using external application.
3. Disable PDF reader from Startup programs of Windows.
4. Keep Macros disabled. Malicious files might persuade you to enable but you should not unless very much necessary.
5. Do not download or open file attachment sent by unknown email sender.
6. Ensure Windows OS, PDF reader program and Antivirus is up to date.
7. Backup regularly and keep it encrypted.
Conclusion
Whether a PDF has a virus or not, it does not solely depend on the file extension. It also depends on the vulnerabilities in the software which will be parsing it. For example, PDF reader that you are using potentially contains a buffer overflow vulnerability, then an attacker can construct a special PDF file to exploit that vulnerability.