Understanding how uploading images and files work

No, PDF aren’t images. Those are handled as files and follow the max attachment size kb site setting.