For pdf files see here:
There is no native method for reading Excel files in App Inventor, they may be readable if you use the activity starter and open them in online Excel or Android Excel
Alternatively, upload them and convert them to google sheets....