You can use Qdabra's qRules 'GetAttachmentAttribute' command to do this.
1. Add GetAttachmentAttribute qRules command to know the file extenstion.
2. Add a rule that verifies, if the attached file != pdf, then nullify the file attachment field, and show a message (in an expression box) to the user.
Hope that helps!