First screen shot looks like a browser doesn't know what to do with a .pdf file it's supposed to be downloading - not displaying. One can see in the header of that file a "PDF 1.4" designation.
What browser? And have you checked browser settings for what to do with a PDF file? Unless you have Adobe, typically Mac browsers will default to opening PDF's in Preview.
The second, might be related to unoconv ... a feature introduced in 3.1. In setting of the Moodle, do you have /usr/bin/unoconv in the path box for unoconv? Try removing that path and save.
Then go back to an assignment submission and attempt grading again.
You might have to turn on debugging for a bit to see if Moodle will give any more information on the second.
Was the moodledata directory transferred in a binary mode or an ascii mode?
You say all the PDF's are corrupted? Or just the ones you've checked out?
Might have to query the DB using the "humanly recognizable" name of a file
to find it's contenthash value and then manually copy out of moodledata/filedir/
a file that you think is corrupted.
The example provide shows it was a PDF in an assignment submission and
the humanly recognizable name was "Hasher Alam Task.pdf"
Here's the query to find that file's reference in the DB:
select contenthash from `mdl_files` where (`component` like "%assignsubmission%" and `filename` like "%Hasher Alam Task.pdf%")
Should show the contenthash ... i.e. location of the file.
something like:
25b7f1f30b49ae98e313e12885e4e8f5b8859549
then navigate /moodledata/filedir/25/b7/ to see if there is a file by
the contenthash name.
Copy that file in filedir out to your web root ... on CentOS web root is /var/www/html/ typically.
From moodledata in a shell for example:
cp ./filedir/25/b7/25b7f1f30b49ae98e313e12885e4e8f5b8859549 /var/www/html/test.pdf
Then use browser going directly to:
http://site/test.pdf
How does your browser behave? Should prompt to download or launch with either Adobe or Preview, I would think.
Don't forget to remove the test.pdf file after testing.
'spirit of sharing', Ken