How do file types differ?
A text file stores writing and usually opens simply. An image stores a picture. A PDF is for keeping the look of a page together. An archive packs several files into one bundle.
Forcing one type to do another type's job breaks the result. You may not be able to select writing inside a picture. Writing in a PDF can be selected when it is real text. You can check the difference by opening it.