You can have two different upload fields that upload two different files. You can create one upload field that will upload both images and pdf files, but it will not resize image files and leave pdf files alone. You can either create an upload that will resize images, or an upload that will take any file, but not resize images.